This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Help with hook_link

Hi

I´m trying to write a module with a custom link funktion but i dont know how to make it in 5.1
I tryed this way.

IMG File filter

There is a replacement module for inline at http://drupal.org/project/img_filter. It works with thumbnails and the thickbox module.

Demo page at: http://project.para.ro/node/74

i can't create a second user for drupal local account in my computer

After installing WAMP server i copied the files of drupal to run.Then i got a login window ,since i don't have an account i created a new account .After that when i tried to create a second account i got a message "access denied". Since i am developing a scrapbook module i need at least 2 users to check the working of the module .So can u help me to create a second account ?

stuck with cck field type

I am working on a special cck field type, "See Map" links for content types that have mappable addresses, and saving the value of a checkbox widget does not work.

The field configuration allows you to specify the names of the other fields that represent the street address, the city etc. The widget that is shown when the content is edited is a simple checkbox, to enable or disable these "See Map" links for this particular node. The value of this checkbox is not saved to the database, and I have no clue why.

Wrong/useless code in node_example_validate from docs

I was making a validate function following the example of node_example_validate from api.drupal.org.

The example clearly shows making a change to $node

...
  else {
    // Let an empty field mean "zero."
    $node->quantity = 0;
  } 

However, the description of hook_validate clearly says

Best way to send an email when an event type node is added

I want to send an email to a configurable address when an event node is added.. Obviously, I don't want to maintain a patch for node. The Notify module can send an email when a node is added, but can't filter by type - and is a lot more than what I need anyway.

Is the correct/best practice to just write a tiny little module that uses hook_cron to check for new events, and fire off an email if so, or am I missing something obvious?

tia,
drue

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions