drupal-hooks
How can I combine fields to generate a username during registration?
In a custom module \"nade_reg\" I have changed the registration form to include two fields to collect the first and last-name of the user, while hiding the username field.I don\'t know if it\'s releva[详细]
2023-03-03 13:04 分类:问答hook_node_info is not adding content type to my list
I\'m trying to add a new content type from within a module, and I have pretty much borrowed from the ubercart product kit module, since I want to use that as a base for this new type:[详细]
2023-02-27 02:30 分类:问答Drupal: Change label for a default Node Module Form?
I’ve a specific content where a user can add a new post to it by using a form. This form is used all over the site for different kind of content but in this specific form, I need to edit the first in[详细]
2023-02-19 22:08 分类:问答Passing values to functions through URI (instead of the GET method)
I\'m writing a Drupal 6 module that sends a user ID + a randomly generated string to a function through the URI. I\'m using the menu hook:[详细]
2023-02-18 20:55 分类:问答When several drupal modules implement MODULENAME_template_preprocess, what is the order they are executed?
I\'m asking because it mattered for a rea开发者_运维技巧lname issue and it made me think of how to avoid these kind of conflicts.In the same order that module are called : according to their weight. ([详细]
2023-02-17 13:46 分类:问答How can I prevent endless recursion with Drupal's node_load()?
I\'m using the Ubercart product and product_kit modules. This is great at linking from the relevant product kit to the products which are included, but I also want to link from the individual product[详细]
2023-02-13 06:02 分类:问答Differentiating Between a Drupal Hook Implementation and a Regular Function
I have a couple of questions on Drupal coding conventions that I haven\'t been able to gleam from the docs or the code.[详细]
2023-02-12 10:36 分类:问答drupal menu_alter looking for include file in the wrong place
I currently have a simple menu_alter hook in a new module I\'m building which allows simple access control for menus:[详细]
2023-02-12 10:19 分类:问答Drupal: Are hook_ functions in *.api.php ever called?
In Drupal 7, every core module has a *.api.php file, where * is the name of the module.For example modules/node/node.api.php[详细]
2023-02-11 00:53 分类:问答What Core Drupal functions can be used to invoke hooks?
This is a followup to another question I asked abou creating your own hooks. In the answer and comments, two functions were mentioned[详细]
2023-02-10 23:59 分类:问答