You are here

function dynamic_background_views_menu in Dynamic Background 7

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

Implementation of hook_menu(). Hooks into the profile with a "My background" tab, where users can select one of the backgrounds.

Return value

array menu items

File

modules/dynamic_background_views/dynamic_background_views.module, line 31
This module implements the views extension for dynamic background.

Code

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