| 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 |
}
|