Advertisement
DrupalCustom

arrayIssue

Feb 18th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1.  $targetLangs = isset($form_state['values']['target']) ? $form_state['values']['target'] : key($options_first);
  2.  
  3.  
  4.  
  5.   if (count($targetLangs) == 0) {
  6.     drupal_get_messages();
  7.     drupal_set_message("Please select appropriate Freeway Target Languages.");
  8.     drupal_goto($base_root . request_uri());
  9.  
  10.   }
  11.  
  12.  
  13.         drupal_get_messages();
  14.         drupal_set_message("CountArray ->".count($targetLangs));
  15.         $countVal = count($targetLangs);
  16.         for($e=0;$e<$countVal ;$e++)
  17.         {
  18.        
  19.         drupal_set_message("Values we need >!".$targetLangs[$e]);
  20.         }
  21.         drupal_goto("user");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement