Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm working on my first module and I have a question. I am trying to insert a script tag into the html head area. I've done the module tutorial and I've looked at different modules that do this (event, taxonomy_dhtml, simplenews). I'm a bit confused because all three use differerent hooks and none of them are working for me.
I'm a fairly experienced Drupal user, but by no means an expert with the project code.
I'm keen to start developing my sites in 4.7 / CVS because it is, in my opinion, a huge advance from 4.6, particularly for the cms type sites that I develop. I am aware that the cvs still contains bugs etc.
Obviously, many of the useful Drupal modules are written for 4.6. As I understand it, there are huge changes in the API (e.g. for form handling) between 4.6 and 4.7 / cvs.
I am trying to modify image.module and create a totally different module called "customimage".
I want the module to act exactly like the image.module, but it would have a different name.
The module works, but the uploaded images files are saved as attachments.
Anyone got any idea why the image is saved as an attachement and not displayed as an image ?
thanks in advance...
I have been testing and since I migrated to 4.6 it seems that node_load only returns an object when there is a user with access that is logged on.
The problem is that I need to load this on a cron. Does anyone know how can I get node_load to return the object from a cron without a user logged on (anonymous)? ... is this a security feature or is this a bug?
Thanks