You are here

function tft_archive_menu in Taxonomy File Tree 7.2

Implements hook_menu().

File

modules/tft_archive/tft_archive.module, line 13
Hook implementation and logic.

Code

function tft_archive_menu() {
  $menu = array(
    'tft/term/archive/%' => array(
      'title' => "Archive a folder",
      'access callback' => 'tft_term_access',
      'access arguments' => array(
        3,
        NULL,
        'archive',
      ),
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'tft_archive_term_form',
        3,
      ),
      'file' => 'includes/tft_archive.pages.inc',
      'type' => MENU_CALLBACK,
    ),
    'tft/file/archive/%' => array(
      'title' => "Archive a file",
      'access callback' => 'tft_archive_access',
      'access arguments' => array(
        3,
      ),
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'tft_archive_file_form',
        3,
      ),
      'file' => 'includes/tft_archive.pages.inc',
      'type' => MENU_CALLBACK,
    ),
    'tft/term/restore/%' => array(
      'title' => "Restore a file",
      'access callback' => 'tft_term_access',
      'access arguments' => array(
        3,
        NULL,
        'archive',
      ),
      'page callback' => 'tft_archive_restore_element',
      'page arguments' => array(
        3,
        'term',
      ),
      'file' => 'includes/tft_archive.pages.inc',
      'type' => MENU_CALLBACK,
    ),
    'tft/file/restore/%' => array(
      'title' => "Restore a file",
      'access callback' => 'tft_archive_access',
      'access arguments' => array(
        3,
      ),
      'page callback' => 'tft_archive_restore_element',
      'page arguments' => array(
        3,
        'node',
      ),
      'file' => 'includes/tft_archive.pages.inc',
      'type' => MENU_CALLBACK,
    ),
  );
  return $menu;
}