You are here

function fancy_file_delete_menu in Fancy File Delete 7

Implements hook_menu().

File

./fancy_file_delete.module, line 26

Code

function fancy_file_delete_menu() {
  $items = array();
  $items['admin/config/content/fancy_file_delete'] = array(
    'title' => 'Fancy File Delete',
    'description' => 'Delete Multiple Files Based off FID or orphaned / unamaged files',
    'page callback' => 'fancy_file_delete_info',
    'access arguments' => array(
      'administer fancy file delete',
    ),
    'file' => 'includes/fancy_file_delete.admin.inc',
  );
  $items['admin/config/content/fancy_file_delete/info'] = array(
    'title' => 'Info',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -12,
  );
  $items['admin/config/content/fancy_file_delete/manual'] = array(
    'title' => 'Manual',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fancy_file_delete_manual',
    ),
    'access arguments' => array(
      'administer fancy file delete',
    ),
    'weight' => -10,
    'file' => 'includes/fancy_file_delete.admin.inc',
  );
  return $items;
}