Posted by prabirchoudhury on July 4, 2009 at 6:42am
I am learning as a legenner stage. i have installed drupal in my local pc with wamp server. i am writing personal module on sites/all/modules/mymodule/mymodule.module .
i have wrote my function
function mymodule_help($path, $arg) {
$output = '';
switch ($path) {
case "admin/help#mymodule":
$output = '<p>'. t("this the first hello from the function") .'</p>';
break;
}
return $output;
} i have enabled module but when i run the site page then on the top of the page php code showing bellow part
;break;
}
return $output;could any one help please what i am missing here
Comments
try following the module development docs
try following the module development docs and it should work
http://drupal.org/node/231276
Just a silly question just to check. Did you put the php tag
at the top of the file.
thanks
yes you are right was a silly mistake
<php instead of <?phpthanks a lot