On Monday 14 August 2006 06:15 pm, Augustin (Beginner) wrote:
There are some undocumented changes in hook_node_info(): http://drupal.org/node/64279#comment-143533
Actually, I have discovered a serious bug that would prevent project.module to be updated for head: http://drupal.org/node/78549
The hook returns an array. In 4.7, the array has the key 'base', which is replaced by the key 'module' in head.
How should the project.module be updated?
function project_node_info() { return array( 'project_project' => array('name' => t('project'), 'base' => 'project_project'), 'project_issue' => array('name' => t('issue'), 'base' => 'project_issue')); }
It defines two different node types, and the base is used to call callback functions, for some node types hooks like hook_access(). Thus, project_project_access() and project_issue_access() are called according to the node type.
-- http://www.wechange.org/ Because we and the world need to change. http://www.reuniting.info/ Intimate Relationships, peace and harmony in the couple.