I want to put a specific help message on admin/settings/admin. I am creating a theme that I plan to upload to the drupal projects board for free use. So I want it to tell people that it can be colorized. I actually tried using hook_help (so it either doesn't work or I'm doing something wrong...(I'd bet the later)). ------------------------- I tried in hook_help() in the template.php: <?php function hook_help($path, $arg) { switch ($path) { // Help info for the administration theme page case 'admin/settings/admin': return '<p>' . t('This theme is integrated with the color module! To customize this theme go to the <a href="/admin/build/themes/settings/accolade">settings page</a>. ') . '</p>'; } }; ?> Does anyone know what I did wrong? Thanks for your help, Holly Ferree, Graphic Designer, BFA 813.786.0852 hferree@gmail.com http://www.designbyholly.com/
Hi Holly, I've just replied to your other email on the consulting list. All the answers are there! Regards Steven Jones ComputerMinds ltd - Perfect Drupal Websites Phone : 024 7666 7277 Mobile : 07702 131 576 Twitter : darthsteven http://www.computerminds.co.uk 2009/12/8 Holly Ferree <hferree@gmail.com>:
I want to put a specific help message on admin/settings/admin. I am creating a theme that I plan to upload to the drupal projects board for free use. So I want it to tell people that it can be colorized.
I actually tried using hook_help (so it either doesn't work or I'm doing something wrong...(I'd bet the later)). -------------------------
I tried in hook_help() in the template.php:
<?php
function hook_help($path, $arg) { switch ($path) {
// Help info for the administration theme page
case 'admin/settings/admin': return '<p>' . t('This theme is integrated with the color module! To customize this theme go to the <a href="/admin/build/themes/settings/accolade">settings page</a>. ') . '</p>'; } };
?>
Does anyone know what I did wrong?
Thanks for your help,
Holly Ferree, Graphic Designer, BFA 813.786.0852 hferree@gmail.com http://www.designbyholly.com/
On 2009-12-08, at 11:16 AM, Holly Ferree wrote:
I actually tried using hook_help (so it either doesn't work or I'm doing something wrong...(I'd bet the later)).
I'm pretty sure that hook_help() is only available within modules, and not themes: http://api.drupal.org/api/function/hook_help/6 --Andrew
Andrew Berry wrote:
On 2009-12-08, at 11:16 AM, Holly Ferree wrote:
I actually tried using hook_help (so it either doesn't work or I'm doing something wrong...(I'd bet the later)).
I'm pretty sure that hook_help() is only available within modules, and not themes:
Besides which, if you wanted to implement hook_help(), the function name would be changed to mymodulename_help(). Defining a function called hook_help() wouldn't work -- that function would never be called by Drupal core. Check out the module developers tutorial on drupal.org, which might clear up some confusion about how to implement hooks. --Jennifer -- Jennifer Hodgdon * Poplar ProductivityWare www.poplarware.com Drupal, WordPress, and custom Web programming
participants (4)
-
Andrew Berry -
Holly Ferree -
Jennifer Hodgdon -
Steven Jones