drupal 通过hook_menu实现添加菜单

 $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,
posted @ 2017-06-27 10:11  jiafeng  阅读(591)  评论(0编辑  收藏  举报