You are here

function dynamic_background_user_menu in Dynamic Background 7.2

Same name and namespace in other branches
  1. 6 modules/dynamic_background_user/dynamic_background_user.module \dynamic_background_user_menu()
  2. 7 modules/dynamic_background_user/dynamic_background_user.module \dynamic_background_user_menu()

Implements hook_menu().

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

Return value

array

File

modules/dynamic_background_user/dynamic_background_user.module, line 27
This module provides user with the option to select a dynamic background image for each user.

Code

function dynamic_background_user_menu() {
  return array(
    'user/%user/backgrounds' => array(
      'title' => 'My background',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'dynamic_background_user_form',
        1,
      ),
      'access arguments' => array(
        'dynamic background user image selection',
      ),
      'type' => MENU_LOCAL_TASK,
    ),
  );
}