EclipseGc

Untitled

May 9th, 2012
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   $output = array();
  2.   $string = array();
  3.   if (variable_get('worx_social_review_google_link', '')) {
  4.     $string[] = '@google';
  5.     $output['@google'] = '[google] - Google Review Link';
  6.   }
  7.   if (variable_get('worx_social_review_bing_link', '')) {
  8.     $string[] = '@bing';
  9.     $output['bing'] = '[bing] - Bing Review Link';
  10.   }
  11.   if (variable_get('worx_social_review_yahoo_link', '')) {
  12.     $string[] = '@yahoo';
  13.     $output['yahoo'] = '[yahoo] - Yahoo Review Link';
  14.   }
  15.   if (variable_get('worx_social_review_yp_link', '')) {
  16.     $string[] = '@yp';
  17.     $output['yp'] = '[yp] - Yellow Pages Review Link';
  18.   }
  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.   );
Advertisement
Add Comment
Please, Sign In to add comment