/[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.1, Sat Jan 3 03:32:37 2009 UTC revision 1.2, Sat Jan 3 04:25:12 2009 UTC
# Line 2  Line 2 
2  // $Id$  // $Id$
3    
4  function restricted_content_settings_form() {  function restricted_content_settings_form() {
5      $form['restricted_content_message'] = array(
6        '#type' => 'textarea',
7        '#title' => t('Message to replace content for restricted users'),
8        '#description' => t('The following replacements can be made:') . theme('item_list', array(t('@node-type - the name of the content type'))),
9        '#default_value' => restricted_content_var('message'),
10        '#wysiyg' => FALSE,
11      );
12      $form['restricted_content_message_anon'] = array(
13        '#type' => 'textarea',
14        '#title' => t('Additional message to display for restricted anonymous users'),
15        '#description' => t('@node-type will be replaces with the name of the content type.'),
16        '#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'))),
17        '#default_value' => restricted_content_var('message_anon'),
18        '#wysiyg' => FALSE,
19      );
20    
21      return system_settings_form($form);
22  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.2