View difference between Paste ID: BcGq9LsA and 9KK9USTQ
SHOW: | | - or go back to the newest paste.
1-
    $output = array();
1+
  $output = array();
2-
  if (!empty(variable_get('worx_social_review_google_link', ''))){
2+
  $string = array();
3
  if (variable_get('worx_social_review_google_link', '')) {
4
    $string[] = '@google';
5-
  if (!empty(variable_get('worx_social_review_bing_link', ''))){
5+
6
  }
7
  if (variable_get('worx_social_review_bing_link', '')) {
8-
  if (!empty(variable_get('worx_social_review_yahoo_link', ''))){
8+
    $string[] = '@bing';
9
    $output['bing'] = '[bing] - Bing Review Link';
10
  }
11-
  if (!empty(variable_get('worx_social_review_yp_link', ''))){
11+
  if (variable_get('worx_social_review_yahoo_link', '')) {
12
    $string[] = '@yahoo';
13
    $output['yahoo'] = '[yahoo] - Yahoo Review Link';
14-
  if (!empty(variable_get('worx_social_review_foursquare_link', ''))){
14+
15
  if (variable_get('worx_social_review_yp_link', '')) {
16
    $string[] = '@yp';
17
    $output['yp'] = '[yp] - Yellow Pages Review Link';
18
  }
19-
    '#markup' => t('<p>@google<br />@yahoo<br />@bing<br />@yp<br />@foursquare<br /></p>', $output ),
19+
  if (variable_get('worx_social_review_foursquare_link', '')) {
20
    $string[] = '@foursquare';
21
    $output['foursqaure'] = '[foursqaure] - Foursquare Review Link';
22
  }
23
  $form['tokens']['token_list'] = array(
24
    '#type' => 'item',
25
    '#markup' => '<p>' . t(implode('<br />', $string), $output ) . '</p>',
26
  );