You are here

function hfs_menu in Header and Footer Scripts 7

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

Implements hook_menu().

File

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

Code

function hfs_menu() {
  $items['admin/config/development/hfs'] = array(
    'title' => 'HFS (Header Footer Scripts)',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_header_settings_form',
    ),
    '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/hfs/header'] = array(
    'title' => 'Header Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_header_settings_form',
    ),
    '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/hfs/body'] = array(
    'title' => 'Body Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_body_settings_form',
    ),
    '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/hfs/footer'] = array(
    'title' => 'Footer Scripts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hfs_footer_settings_form',
    ),
    '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;
}