| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 433 lines (15 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| hook_node_info() X-Ref |
| Define module-provided node types. This is a hook used by node modules. This hook is required for modules to define one or more node types. It is called to determine the names and the attributes of a module's node types. Only module-provided node types should be defined through this hook. User- provided (or 'custom') node types should be defined only in the 'node_type' database table, and should be maintained by using the node_type_save() and node_type_delete() functions. return: |
| hook_node_type($op, $info) X-Ref |
| Act on node type changes. This hook allows modules to take action when a node type is modified. param: $op param: $info |
| hook_access($op, $node, $account) X-Ref |
| Define access restrictions. This hook allows node modules to limit access to the node types they define. param: $op param: $node param: $account return: |
| hook_delete(&$node) X-Ref |
| Respond to node deletion. This is a hook used by node modules. It is called to allow the module to take action when a node is being deleted from the database by, for example, deleting information from related tables. param: &$node return: |
| hook_prepare(&$node) X-Ref |
| This is a hook used by node modules. It is called after load but before the node is shown on the add/edit form. param: &$node return: |
| hook_form(&$node, $form_state) X-Ref |
| Display a node editing form. This hook, implemented by node modules, is called to retrieve the form that is displayed when one attempts to "create/edit" an item. This form is displayed at the URI http://www.example.com/?q=node/<add|edit>/nodetype. param: &$node param: $form_state return: |
| hook_insert($node) X-Ref |
| Respond to node insertion. This is a hook used by node modules. It is called to allow the module to take action when a new node is being inserted in the database by, for example, inserting information into related tables. param: $node return: |
| hook_load($node) X-Ref |
| Load node-type-specific information. This is a hook used by node modules. It is called to allow the module a chance to load extra information that it stores about a node, or possibly replace already loaded information - which can be dangerous. param: $node return: |
| hook_update($node) X-Ref |
| Respond to node updating. This is a hook used by node modules. It is called to allow the module to take action when an edited node is being updated in the database by, for example, updating information in related tables. param: $node return: |
| hook_validate($node, &$form) X-Ref |
| Verify a node editing form. This is a hook used by node modules. It is called to allow the module to verify that the node is in a format valid to post to the site. Errors should be set with form_set_error(). param: $node param: $form return: |
| hook_view($node, $teaser = FALSE, $page = FALSE) X-Ref |
| Display a node. This is a hook used by node modules. It allows a module to define a custom method of displaying its nodes, usually by displaying extra information particular to that node type. param: $node param: $teaser param: $page return: |
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |