Fix for my implement of hool_menu()

  1. function auto_expire_new_menu($maycache) {
  2.   $items = array();
  3.   if($maycache){
  4.     $items['admin/settings/auto_expire'] = array(
  5.       'title' => 'Auto Expire Settings',
  6.       'page callback' => 'auto_expire_new_settings_page',
  7.       'access arguments' => array('administer site configuration'),
  8.       'type' => MENU_NORMAL_ITEM,
  9.     );
  10.     $items['auto_expire_run'] = array(
  11.       'title' => 'Auto Expire Manual Fire',
  12.       'page callback' => 'auto_expire_new_run',
  13.       'access arguments' => array('access content'),
  14.       'type' => MENU_CALLBACK,
  15.     );
  16.   }
  17.   return $items;
  18. }