You are here

function pmperson_menu in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pmperson/pmperson.module \pmperson_menu()
  2. 7 pmperson/pmperson.module \pmperson_menu()
  3. 7.2 pmperson/pmperson.module \pmperson_menu()

Implements hook_menu().

File

pmperson/pmperson.module, line 12
Hook implementations for the pmperson module.

Code

function pmperson_menu() {
  module_load_include('inc', 'pmperson', 'includes/pmperson.migrate');
  $items = array();
  if (pmperson_migrate_update_could_be_performed() == FALSE) {
    $items[PMPERSON_RESOLVE_DEPENDENCIES_LINK] = array(
      'title' => 'PM Person migration conflicts',
      'page callback' => 'pmperson_migrate_page_callback',
      'access callback' => 'pmperson_update_access_allowed',
      'type' => MENU_NORMAL_ITEM,
      'file' => 'includes/pmperson.migrate.inc',
    );
  }
  return $items;
}