您好我需要在drupal中创建一个模块来显示一些数据,而不是一个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我得到一个拒绝访问 您无权访问此页面。
任何想法即时做错了什么? 如果我转到管理 - >模块 - >权限,我检查了所有角色的访问权限以访问hellowold内容。
Ty!