/[drupal]/contributions/modules/restricted_content/restricted_content.admin.inc
ViewVC logotype

Diff of /contributions/modules/restricted_content/restricted_content.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Sat Jan 3 04:25:12 2009 UTC revision 1.3, Sat Jan 3 07:05:20 2009 UTC
# Line 5  function restricted_content_settings_for Line 5  function restricted_content_settings_for
5    $form['restricted_content_message'] = array(    $form['restricted_content_message'] = array(
6      '#type' => 'textarea',      '#type' => 'textarea',
7      '#title' => t('Message to replace content for restricted users'),      '#title' => t('Message to replace content for restricted users'),
     '#description' => t('The following replacements can be made:') . theme('item_list', array(t('@node-type - the name of the content type'))),  
8      '#default_value' => restricted_content_var('message'),      '#default_value' => restricted_content_var('message'),
9      '#wysiyg' => FALSE,      '#wysiyg' => FALSE,
10    );    );
11    $form['restricted_content_message_anon'] = array(    $form['restricted_content_message_anon'] = array(
12      '#type' => 'textarea',      '#type' => 'textarea',
13      '#title' => t('Additional message to display for restricted anonymous users'),      '#title' => t('Additional message to display for restricted anonymous users'),
     '#description' => t('@node-type will be replaces with the name of the content type.'),  
     '#description' => t('The following replacements can be made:') . theme('item_list', array(t('@node-type - the name of the content type'), t('@link-register - The URL of the user register page'))),  
14      '#default_value' => restricted_content_var('message_anon'),      '#default_value' => restricted_content_var('message_anon'),
15      '#wysiyg' => FALSE,      '#wysiyg' => FALSE,
16    );    );
17    
18      if (module_exists('token')) {
19        $form['tokens'] = array(
20          '#value' => theme('token_help', 'node'),
21        );
22      }
23    
24    return system_settings_form($form);    return system_settings_form($form);
25  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2