function anonymous_publishing_admin_settings in Anonymous Publishing 5
Page callback; Provide module settings page.
Return value
unknown
1 string reference to 'anonymous_publishing_admin_settings'
- anonymous_publishing_menu in ./
anonymous_publishing.module - Implementation of hook_menu().
File
- ./
anonymous_publishing.module, line 112 - Installation file for the anonymous_publishing module.
Code
function anonymous_publishing_admin_settings() {
$form['anonymous_publishing_types'] = array(
'#type' => 'checkboxes',
'#multiple' => true,
'#title' => t('Contet types that allow anonymous publishing.'),
'#default_value' => variable_get('anonymous_publishing_types', array()),
'#options' => node_get_types('names'),
);
$form['anonymous_publishing_email_subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject of the verification e-mail'),
'#maxlength' => 180,
'#default_value' => _anonymous_publishing_email_text('subject'),
'#description' => t('Customize the subject of the verification e-mail, which is sent to anonymous users upon creting content.') . ' ' . t('Available variables are:') . ' ' . '!site, !nid, !title',
);
$form['anonymous_publishing_email_body'] = array(
'#type' => 'textarea',
'#title' => t('Body of verification e-mail'),
'#default_value' => _anonymous_publishing_email_text('body'),
'#rows' => 15,
'#description' => t('Customize the body of the verification e-mail, which is sent to anonymous users upon creting content.') . ' ' . t('Available variables are:') . ' ' . '!site, !nid, !title, !activation_uri, !view_uri, !edit_uri, !delete_uri.',
);
return system_settings_form($form);
}