function page_title_admin_settings in Page Title 5
Same name and namespace in other branches
- 8.2 page_title.admin.inc \page_title_admin_settings()
- 5.2 page_title.admin.inc \page_title_admin_settings()
- 6.2 page_title.admin.inc \page_title_admin_settings()
- 6 page_title.module \page_title_admin_settings()
- 7.2 page_title.admin.inc \page_title_admin_settings()
- 7 page_title.admin.inc \page_title_admin_settings()
Displays the form for the standard settings tab.
Return value
array A structured array for use with Forms API.
1 string reference to 'page_title_admin_settings'
- page_title_menu in ./
page_title.module - Implementation of hook_menu().
File
- ./
page_title.module, line 65 - Enhanced control over the page title (in the head tag).
Code
function page_title_admin_settings() {
$form['page_title'] = array(
'#type' => 'fieldset',
'#title' => t('Page title patterns'),
);
$form['page_title']['page_title_individual'] = array(
'#type' => 'textfield',
'#title' => t('Pattern for individual pages'),
'#default_value' => variable_get('page_title_individual', '!page_title | !site_name'),
'#maxlength' => 128,
'#description' => t('Available placeholders: <code>!page_title</code>, <code>!site_name</code>, <code>!site_slogan</code>.'),
);
$form['page_title']['page_title_front'] = array(
'#type' => 'textfield',
'#title' => t('Pattern for front page'),
'#default_value' => variable_get('page_title_front', '!site_name | !site_slogan'),
'#maxlength' => 128,
'#description' => t('Available placeholders: <code>!site_name</code>, <code>!site_slogan</code>.'),
);
return system_settings_form($form);
}