【发布时间】:2009-01-24 20:00:42
【问题描述】:
您好,我需要在 drupal 中创建一个模块来显示一些数据,而不是一个 drupal 开发人员,并且在阅读了几个教程之后,我似乎无法显示任何内容。
我有下一个代码:
<?php
function helloworld_perm() {
return array('access helloworld content');
}
function helloworld_listado(){
return "yea";
}
function helloworld_menu(){
$items = array();
$items["listado"] = array(
'title' => t('Listado de empresas'),
'callback' => 'helloworld_listado',
'access' => array('access helloworld content'),
'type' => MENU_NORMAL_ITEM
);
return $items;
}
当我输入 /listado 时,我得到一个拒绝访问 您无权访问此页面。
知道我做错了什么吗? 如果我转到 admin->module->permissions,我已经检查了所有角色访问 helloold 内容的权限。
泰!
【问题讨论】:
标签: drupal