You are here

function delete_all_menu in Delete all 6

Same name and namespace in other branches
  1. 5 delete_all.module \delete_all_menu()
  2. 7 delete_all.module \delete_all_menu()

File

./delete_all.module, line 3

Code

function delete_all_menu() {
  $items = array();
  $items['admin/content/delete_content'] = array(
    'title' => 'Delete all content',
    'description' => 'Delete all nodes and comments on this site. This is useful for development sites, or prior to launching the site. Otherwise it destroys all data on a site.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delete_all_content',
    ),
    'access arguments' => array(
      'administer nodes',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/content/delete_content/confirm'] = array(
    'title' => 'Confirm deletion of all content',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delete_all_content_confirm',
    ),
    'access arguments' => array(
      'administer nodes',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/content/delete_users'] = array(
    'title' => 'Delete all users',
    'description' => 'Delete all users on this site. This is useful for development sites, or prior to launching the site. Otherwise it destroys all data on a site.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delete_all_users',
    ),
    'access arguments' => array(
      'administer users',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}