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