Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function freeway_user_mapping()
- {
- $result = db_query("SELECT mode_id FROM {freeway_mode} ");
- $rows = mysql_num_rows($result);
- if($rows==0){
- $form['contact_information'] = array(
- '#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.')),
- );
- $form['contact_br'] = array(
- '#value' => variable_get('contact_form_br',t('<br/>') ),
- );
- $form['contact_link'] = array(
- '#value' => variable_get('contact_form_link',l(t('Global User Settings'), 'user/'. $user->uid .'/freewayUserMapping', array('attributes' => array('class' => 'link_class'))) ),
- );
- $form['link_br'] = array(
- '#value' => variable_get('link_form_br',t('<br/>') ),
- );
- $form['contact_user'] = array(
- '#value' => variable_get('contact_form_user',l(t('Non Global User Settings'), 'about-us', array('attributes' => array('class' => 'link_class'))) ),
- );
- }
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement