You are here

function entity_delete_log_menu in Entity Delete Log 7

Implements hook_menu(). See the entity_delete_log view for the default local task page display.

File

./entity_delete_log.module, line 12
Saves custom log entry to database when an entity is deleted.

Code

function entity_delete_log_menu() {
  $items = array();

  // Module setup form.
  $items['admin/config/system/entity-delete-log'] = array(
    'title' => t('Entity Delete Log'),
    'description' => t('Entity Delete Log Settings'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'entity_delete_log_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );

  // Place an empty default local task so our default view(s) local tasks will
  // work properly.
  $items['admin/reports/entity-delete-log/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}