function front_page_admin_home_links in Front Page 7.2
Same name and namespace in other branches
- 6.2 front_page.admin.inc \front_page_admin_home_links()
Form for setting the <front> placeholder to another path.
1 string reference to 'front_page_admin_home_links'
- front_page_menu in ./
front_page.module - Implements hook_menu().
File
- ./
front_page.admin.inc, line 282 - Admin page callbacks for the front page module.
Code
function front_page_admin_home_links($form, &$form_state) {
$form['front_page_home_link_path'] = array(
'#type' => 'textfield',
'#title' => t('Redirect your site HOME links to'),
'#default_value' => variable_get('front_page_home_link_path', ''),
'#cols' => 20,
'#rows' => 1,
'#description' => t('Specify where the user should be redirected to. An example would be <em>node/12</em>. Leave blank when you\'re not using HOME redirect.'),
'#field_prefix' => url(NULL, array(
'absolute' => TRUE,
)) . (variable_get('clean_url', 0) ? '' : '?q='),
);
return system_settings_form($form);
}