Hello there!
I am attempting to write a module for drupal for the first time. I am working on putting together a basic skeleton of a module together. I have created the file, inserted it into the module directory, named it properly, and inserted the following code, and activated the module in an attempt to have the module return a test string when I goto http://www.mywebpage.com/wpiupdates - all it does is return an error along the lines of index.php has failed to open stream. Bad file descriptor.
my web site has been working fine - and still works fine after the module is activated via the admin - I believe the problem lays with my code. can someone help me to figure out what i am doing wrong?
Here is the code:
function wpiupdates_settings() {
// only administrators can access this module
if (!user_access("admin wpiupdates")) {
return message_access();
}
}
function wpiupdates_node($field) {
$info["name"] = t("wpi updates");
$info["description"] = t("WPI Update Module.");
return $info[$field];
}
function wpiupdates_link($type, $node=0) {
if (($type == "system")) {
// URL, page title, func called for page content, arg, 1 = don't disp menu
menu("wpiupdates", t("WPI Updates"), "wpiupdates_all", 1, 1);
}
}
function wpiupdates_form(&$node, &$help, &$error) {
$help = ("Enter the latest WPI update inside this form.");