I've got a module that I'm developing that uses a javascript import.
Everything works fine except that the drupal_add_js does not work unless I specifically print drupal_get_js.
The code that I'm using looks like this:
drupal_add_js('misc/collapse.js');
This doesn't appear to work (no script output in html) unless I do the following:
Now the weird thing: this works perfectly as long as i'm logged in as admin, but when i logout, the $url variable gets me to the base path (thus can not get the path from the node anymore). So anonymous users (about all visitors of the site) can't see this link!
I have an unusual question/concern. Some of us know about Elgg: a learning landscape, it's somewhat similar to Drupal, but has one unique feature. The Email filter. Elgg code says the following:
This should brain-dead easy, but I've spent the last couple of hours and have been unable to get hook_nodeapi() to work as expected with operations 'insert' and 'update'.
I'm simply trying to execute a task using hook_nodeapi() after a node insert or update occurs. The problem is the call never occurs for 'update' or 'insert'. The functions works fine for other operations like 'load' and 'form pre'. I've outputted the value of $op after submit and the string of operations does not include 'update' or 'insert'.
I have a drupal site that has been upgraded from Drupal 4.5 up to Drupal 4.7.4 and has been running fine until re-setting up mailhandler (which was included in CivicSpace). I have already re-installed mailhandler using the devel module.