Advertisement
DrupalCustom

comma

Jan 20th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1.  drupal_add_js(drupal_get_path('module', 'formModifications') .'/js/script.js');
  2.       // Get the nodes.
  3.       $chosenContents = "Contents Chosen :";
  4.       $nodes_ser = trim($_GET['nodes']);
  5.       $nodes = explode("-",$nodes_ser);
  6.       $form = array();
  7.       $tarLangId = "Langs:";
  8.        
  9.          
  10.      foreach( $nodes as $key => $value){
  11.             $node = node_load($value); 
  12.             $chosenContents .= $node->title." , ";
  13.             }
  14.            // $str = $chosenContents;
  15.          // $str = substr($str, 0, -1);
  16.            
  17.     $form['content_information'] = array(
  18.         '#value' => variable_get('content_form_information', $chosenContents),
  19.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement