Missing argument...

asb - March 9, 2008 - 23:47
Project:Text Size
Version:5.x-1.3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

I installed the Text Size module on five Drupal sites; on four, I got the following error after activating:

   warning: Missing argument 2 for textsize_help() in /var/www/drupal/modules/textsize/textsize.module on line 12.
   warning: Missing argument 2 for textsize_help() in /var/www/drupal/modules/textsize/textsize.module on line 12.

This error appears continuously on *all* administrative pages (/admin/*)

Also, I noticed in admin/user/access when setting the permissions, that there is an option "administer textsize". However, I can't find a tool to administer textsize in the admin/* section. Any ideas?

Thanks & greetings, -asb

PS: "Text Size" is another feature that has to go into core...

#1

csc4 - March 10, 2008 - 14:02

According to http://api.drupal.org/api/function/hook_help/5 hook_help only takes one parameter

function hook_help($section) {

but the module defines two

function textsize_help($path, $arg) {

though the function never seems to call the second argument so perhaps it's ok to just remove it?

#2

Christian Zwahlen - March 11, 2008 - 20:13
Status:active» fixed

fixed

#3

realityloop - March 11, 2008 - 22:25

where do we access/apply this fix? in CVS, can confirm fix is working at my end, thanks.

#4

Anonymous (not verified) - March 25, 2008 - 22:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.