| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: delete_all.module,v 1.1.2.8 2008/03/04 18:23:43 douggreen Exp $ |
| 3 |
|
|
| 4 |
function delete_all_menu($maycache) { |
function delete_all_menu($maycache) { |
| 5 |
$items = array(); |
$items = array(); |
| 10 |
'description' => t('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.'), |
'description' => t('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.'), |
| 11 |
'callback' => 'drupal_get_form', |
'callback' => 'drupal_get_form', |
| 12 |
'callback arguments' => array('delete_all_content'), |
'callback arguments' => array('delete_all_content'), |
| 13 |
'access' => user_access('administer content'), |
'access' => user_access('administer nodes'), |
| 14 |
'type' => MENU_NORMAL_ITEM); |
'type' => MENU_NORMAL_ITEM); |
| 15 |
|
|
| 16 |
$items[] = array( |
$items[] = array( |