You are here

function hfs_menu in Header and Footer Scripts 7.2

Same name and namespace in other branches
  1. 7 hfs.module \hfs_menu()

Implements hook_menu().

File

./hfs.module, line 11
Enables Drupal to add scripts and styles from frontend on all over the site.

Code

function hfs_menu() {
  $items['admin/config/development/header-and-footer-scripts'] = array(
    'title' => 'Header and Footer Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_header_settings',
    ),
    'access arguments' => array(
      'administer hfs module',
    ),
    'description' => 'Allow to add scripts and styles from the frontend under Head section.',
    'file' => 'hfs.admin.inc',
    'weight' => 10,
  );
  $items['admin/config/development/header-and-footer-scripts/header'] = array(
    'title' => 'Header Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_header_settings',
    ),
    'access arguments' => array(
      'administer hfs module',
    ),
    'description' => 'Allow to add scripts and styles from the frontend under Head section.',
    'file' => 'hfs.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
  );
  $items['admin/config/development/header-and-footer-scripts/body'] = array(
    'title' => 'Body Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_body_settings',
    ),
    'access arguments' => array(
      'administer hfs module',
    ),
    'description' => 'Allow to add scripts and styles from the frontend at the start of BODY Tag.',
    'file' => 'hfs.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 30,
  );
  $items['admin/config/development/header-and-footer-scripts/footer'] = array(
    'title' => 'Footer Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_footer_settings',
    ),
    'access arguments' => array(
      'administer hfs module',
    ),
    'description' => 'Allow to add scripts and styles from the frontend just before the end of BODY Tag.',
    'file' => 'hfs.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 40,
  );
  return $items;
}