[consulting] Print Specific Message on admin/settings/admin

Holly Ferree hferree at gmail.com
Tue Dec 8 16:24:09 UTC 2009


Yeah, that¹s my question with it...I¹d hate for someone to have to download
a specific module in order to use my theme. And although I was hoping for
some impressive and easy solution, my backup is creating
page-admin-settings-admin.tpl.php and inserting the phrase at the top in a
help tag. :)

Thanks everyone for your help.

Holly Ferree


On 12/8/09 11:19 AM, "Aaron Winborn" <winborn at advomatic.com> wrote:

> Unfortunately, I don't know if a module can be packaged with a theme...
> 
> Steven Jones wrote:
>>  
>> Hi Holly,
>> 
>> You'll actually need to create a module that implements hook_help
>> (probably easier than it sounds).
>> 
>> If you read this page:
>> http://drupal.org/node/206753
>> and it's first two sub pages:
>> http://drupal.org/node/206754
>> http://drupal.org/node/206756
>> 
>> then you'll have implemented your hook_help, and it'll be ready to
>> customise to your hearts desire!
>> 
>> Regards
>> Steven Jones
>> 
>> Phone : 02476 417 749
>> Mobile : 07702 131 576
>> Twitter : darthsteven
>> 
>> 
>> 
>> 2009/12/8 Holly Ferree <hferree at gmail.com> <mailto:hferree at gmail.com> :
>>   
>>  
>>>  
>>> I actually tried using it (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>';
>>>  }
>>> };
>>> 
>>> ?>
>>> 
>>> Thanks for your help,
>>> 
>>> Holly Ferree, Graphic Designer, BFA
>>> 813.786.0852
>>> hferree at gmail.com
>>> http://www.designbyholly.com/
>>> 
>>> 
>>> On 12/8/09 5:45 AM, "Steven Jones" <steven at aella.co.uk>
>>> <mailto:steven at aella.co.uk>  wrote:
>>> 
>>>     
>>>  
>>>>  
>>>> Or you can use hook_help:
>>>> http://api.drupal.org/api/function/hook_help
>>>> 
>>>> Regards
>>>> Steven Jones
>>>> 
>>>> Phone : 02476 417 749
>>>> Mobile : 07702 131 576
>>>> Twitter : darthsteven
>>>> 
>>>> 
>>>> 
>>>> 2009/12/8 Chris Miller <chris at trailheadinteractive.com>
>>>> <mailto:chris at trailheadinteractive.com> :
>>>>       
>>>>  
>>>>>  
>>>>> You can check $_GET['q'], or use the arg() function to check parts of the
>>>>> current path.
>>>>> 
>>>>>   Chris.
>>>>> 
>>>>> On Mon, Dec 7, 2009 at 2:07 PM, Holly Ferree <hferree at gmail.com>
>>>>> <mailto:hferree at gmail.com>  wrote:
>>>>>         
>>>>>  
>>>>>>  
>>>>>> How do I print a specific message if the page is admin/settings/admin
>>>>>> (administration theme page)?
>>>>>> 
>>>>>> I just want a little note at the top of the page to say that the color
>>>>>> module can be used with the theme.
>>>>>> 
>>>>>> 
>>>>>> Thanks,
>>>>>> 
>>>>>> Holly Ferree, Graphic Designer, BFA
>>>>>> hferree at gmail.com
>>>>>> http://www.designbyholly.com/
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> consulting mailing list
>>>>>> consulting at drupal.org
>>>>>> http://lists.drupal.org/mailman/listinfo/consulting
>>>>>>           
>>>>>>  
>>>>>  
>>>>> 
>>>>> 
>>>>> --
>>>>>  Chris Miller
>>>>>  Trailhead Interactive
>>>>>  http://www.trailheadinteractive.com
>>>>>  406-750-0107
>>>>> 
>>>>> _______________________________________________
>>>>> consulting mailing list
>>>>> consulting at drupal.org
>>>>> http://lists.drupal.org/mailman/listinfo/consulting
>>>>> 
>>>>> 
>>>>>         
>>>>>  
>>>>  
>>>> _______________________________________________
>>>> consulting mailing list
>>>> consulting at drupal.org
>>>> http://lists.drupal.org/mailman/listinfo/consulting
>>>>       
>>>>  
>>>  
>>> 
>>> 
>>> _______________________________________________
>>> consulting mailing list
>>> consulting at drupal.org
>>> http://lists.drupal.org/mailman/listinfo/consulting
>>> 
>>>     
>>>  
>>  
>> _______________________________________________
>> consulting mailing list
>> consulting at drupal.org
>> http://lists.drupal.org/mailman/listinfo/consulting
>>   
> 


Holly Ferree, Graphic Designer, BFA
813.786.0852
hferree at gmail.com
http://www.designbyholly.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/consulting/attachments/20091208/8e6fe92a/attachment.html 


More information about the consulting mailing list