You are here

function hook_menu_alter in Users Export 7.2

Implements hook_menu_alter().

An example how to change the url of the export page.

@link https://www.drupal.org/node/2824163

File

./users_export.api.php, line 62
API documentation for users_export module.

Code

function hook_menu_alter(&$items) {
  if (isset($items['admin/people/export'])) {
    $items['do/re/mi'] = $items['admin/people/export'];
    unset($items['admin/people/export']);

    // Change the title.
    $items['do/re/mi']['title'] = t('Export User List');

    // Move it to the main menu.
    $items['do/re/mi']['menu_name'] = 'main-menu';

    // Make it a normal item.
    $items['do/re/mi']['type'] = MENU_NORMAL_ITEM;
  }
}