You are here

function front_page_admin_home_links in Front Page 6.2

Same name and namespace in other branches
  1. 7.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
Implementation of hook_menu().

File

./front_page.admin.inc, line 224
Admin page callbacks for the front page module.

Code

function front_page_admin_home_links() {
  global $base_url;
  $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' => $base_url . '/' . (variable_get('clean_url', 0) ? '' : '?q='),
  );
  return system_settings_form($form);
}