#598758: Modules page: add link to its settings page for each module is now a part of core. It adds support for showing a link to the module settings from the main modules management, by adding a line to the module's .info file. DHTML Menu should add this line.

CommentFileSizeAuthor
#1 dhtml_menu-635544-1-config-link.patch493 bytescburschka

Comments

cburschka’s picture

Status: Active » Needs review
StatusFileSize
new493 bytes

Here's a patch.

Rory’s picture

Also, you can keep the "configure" link for the module but do away with the Configuration menu item on the configuration page, by adding this line to the implementation of hook_menu().

'type' => MENU_LOCAL_TASK,

so the implementation looks like this:

/**
 * Implementation of hook_menu().
 * Adds a settings page.
 */
function dhtml_menu_menu() {
  $menu['admin/config/user-interface/dhtml_menu'] = array(
    'title' => 'DHTML Menu',
    'description' => 'Configure the behavior of DHTML Menu.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('dhtml_menu_settings'),
    'access arguments' => array('administer site configuration'),
    'type' => MENU_LOCAL_TASK,
    'file' => 'dhtml_menu.admin.inc',
  );
  return $menu;
}

Always pleased when a module is modest enough to not place a link to a settings page under the Configuration menu unless the link will be used very frequently.

christopher james francis rodgers’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)