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

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

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


Revision 1.3 - (show annotations) (download) (as text)
Sat Jan 3 07:05:20 2009 UTC (10 months, 3 weeks ago) by davereid
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -3 lines
File MIME type: text/x-php
- Token module integration!
- Commented out the 403 handling for now. Not sure if it's a good idea yet.
1 <?php
2 // $Id$
3
4 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 '#default_value' => restricted_content_var('message'),
9 '#wysiyg' => FALSE,
10 );
11 $form['restricted_content_message_anon'] = array(
12 '#type' => 'textarea',
13 '#title' => t('Additional message to display for restricted anonymous users'),
14 '#default_value' => restricted_content_var('message_anon'),
15 '#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);
25 }

  ViewVC Help
Powered by ViewVC 1.1.2