hook_help does not work on content type administration pages (Drupal 6)
<?php
// $Id$
/**
* @file
* The Author field module.
*/
/**
* Implementation of hook_help().
*/
function author_field_help($path) {
switch ($path) {
case 'admin/help#author_field':
return '<p>' . t('Userreference fields with the system name %author will automatically have the current user name filled in as the default for the first author.', array('%author' => 'author')) . '</p>';
case 'admin/content/node-type/%/fields':
return '<p>' . t('Userreference fields with the system name %author will automatically have the current user name filled in as the default for the first author.', array('%author' => 'author')) . '</p>';
case 'admin/content/node-type/%/fields/field_author':
return '<p>' . t("This userreference field has the system name %author and will have the poster's username be the default for the first field.", array('%author' => 'author')) . '</p>';
case 'admin/content':
return 'I am here';
}
}
?>
The test works, but the attempts at using the wildcard do not work.
Based on the example in node_help
for node revisions and node edit, it should work, so perhaps CCK broke it. Or perhaps it only works with numeric wildcards, and not strings.
Comments
Post new comment