Advertisement
DrupalCustom

linkktest

Jan 12th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1.  function freeway_user_mapping()
  2.   {
  3.      $result = db_query("SELECT mode_id FROM {freeway_mode} ");      
  4.      $rows = mysql_num_rows($result);
  5.    
  6.         if($rows==0){
  7.      $form['contact_information'] = array(
  8.     '#value' => variable_get('contact_form_information', t('Welcome to Freeway user mapping .You have probably visited this page for the first time. To use the user mapping you can do either of the below 2 options.')),
  9. );
  10.  
  11.      $form['contact_br'] = array(
  12.     '#value' => variable_get('contact_form_br',t('<br/>') ),
  13. );
  14.  
  15.  
  16. $form['contact_link'] = array(
  17.     '#value' => variable_get('contact_form_link',l(t('Global User Settings'), 'user/'. $user->uid .'/freewayUserMapping', array('attributes' => array('class' => 'link_class'))) ),
  18. );
  19.  
  20.      $form['link_br'] = array(
  21.     '#value' => variable_get('link_form_br',t('<br/>') ),
  22. );
  23.  
  24. $form['contact_user'] = array(
  25.     '#value' => variable_get('contact_form_user',l(t('Non Global User Settings'), 'about-us', array('attributes' => array('class' => 'link_class'))) ),
  26. );
  27.  
  28.  
  29. }
  30.    
  31.    
  32.    return $form;
  33.  
  34.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement