drupal 通过hook_menu实现添加菜单

时间:2022-10-08 06:51:52
 $items['mypayment/onlinepay']=array(
'title' => '在线充值',
'description' => '在线充值',
'page callback' => 'mypayment_page',
'access arguments' => array('mypayment'),
'type' => MENU_NORMAL_ITEM,
'file' => 'mypayment.pages.inc',
);

必须:title,

 'type' => MENU_NORMAL_ITEM,