You are here

function dynamic_background_blog_menu in Dynamic Background 7.2

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

Implements hook_menu().

Hooks into the dynamic background modules menu structure and adds the "blog" menu tab to the administration interface.

File

modules/dynamic_background_blog/dynamic_background_blog.module, line 27
This module provides the user blog's with the option to use different dynamic background images for each blog.

Code

function dynamic_background_blog_menu() {
  return array(
    'user/%user/blog/background' => array(
      'title' => 'My blog background',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'dynamic_background_blog_form',
        1,
      ),
      'access arguments' => array(
        'user selection of blog background',
      ),
      'type' => MENU_LOCAL_TASK,
    ),
  );
}