You are here

function dynamic_background_node_menu in Dynamic Background 7

Same name and namespace in other branches
  1. 6 modules/dynamic_background_node/dynamic_background_node.module \dynamic_background_node_menu()

Implementation of hook_menu(). Hooks into the dynamic background modules menu structure and adds the "nodes" menu tab to the administration interface.

Return value

array menu items

File

modules/dynamic_background_node/dynamic_background_node.module, line 26
This module provides the node adminitrators with the option to use different dynamic background images for each node.

Code

function dynamic_background_node_menu() {
  $items = array();
  $items['admin/config/user-interface/backgrounds/node'] = array(
    'title' => 'Node',
    'description' => t('Configure node dynamic background'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dynamic_background_node_admin_form',
    ),
    'access arguments' => array(
      'configure node dynamic background',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -10,
  );
  return $items;
}