Grtz, I'm writing a new module for drupal and was just trying to add some help in the module. Adding a description in admin/modules wasn't a problem, nut I also wanted to add some information to the admin/help. The code is : function product_help($section = 'admin/help#product') { $output = ""; switch ($section) { case 'admin/help#products': $output = t('<p>Extends the functionality of the products - menu.</p>'); $output .= t('<p>We have actually added a tree structure to the products - menu, '); $output .= t('which makes it easier to select a group of products and so navigate '); $output .= t('through the store.</p>'); return $output; } return $output; } Unfortunately, I don't see the link under admin/help. I think the code above is just wright, but I have to add a link somewhere. Can anyone help me on this? thks _________________________________________________________________ De meest trendy stuff voor Windows Live Messenger ... http://entertainment.msn.be/funwithmessenger
Hello, 2007/2/28, Glenn Wybo <glennwybo@hotmail.com>:
Grtz,
I'm writing a new module for drupal and was just trying to add some help in the module. Adding a description in admin/modules wasn't a problem, nut I also wanted to add some information to the admin/help. The code is :
function product_help($section = 'admin/help#product') { $output = "";
switch ($section) { case 'admin/help#products':
The problem seems to be here, it should be 'admin/help#product' assuming 'product' is the name of your module. Please consult the API docs for more information: http://api.drupal.org/api/5/function/hook_help and double check for typos before emailing this list. Cheers, Henrique
participants (2)
-
Glenn Wybo -
Henrique Recidive