在站点中显示新模块

发布于 2024-09-13 09:46:46 字数 353 浏览 2 评论 0原文

我是 drupal 新手, 我基于此示例创建了一个新模块,

http://api.drupal.org/api/drupal/developer--examples--page_example--page_example.module/6/source

我只是将模块名称和方法更改为我的模块新名称“jtpc” 并将 jtpc_perm 更改为

function jtpc_perm() {
  return array(
   'access jtpc content' ,
 );
}

现在我如何在 drupal 站点中查看该模块? 我的下一步是什么?

i am new to drupal ,
i created a new module base on this example

http://api.drupal.org/api/drupal/developer--examples--page_example--page_example.module/6/source

i just changed the module name and method to my module new name 'jtpc'
and change the jtpc_perm to this

function jtpc_perm() {
  return array(
   'access jtpc content' ,
 );
}

now how can i view the module in drupal site ?
what is my next step ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赏烟花じ飞满天 2024-09-20 09:46:46

下一步是实现 hook_menu() 或/和 hook_form_alter()。这些是模块必须通过其创建的页面(或表单)或从其他模块创建的附加其自己的内容的页面对用户可见的主要方式。

阅读菜单系统Forms API 快速入门指南, 表单 API 参考表单生成< /a>, 如何定义内容 (节点)类型如何限制对节点的访问如何扩展现有内容类型,以及默认主题实现

The next step is to implement hook_menu(), or/and hook_form_alter(). Those are the main ways a module have to be visible to users through pages (or forms) it creates, or pages created from other modules to which attach its own content.

Read Menu system, Forms API Quickstart Guide, Forms API Reference, Form generation, How to define content (node) types, How to restrict access to nodes, How to extend existing content types, and Default theme implementations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文