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