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

Check if the body has changed in node_update() - let's see if anybody knows this one!

Hello,

As many of you guys know :-) I am developing article_node.module. It's a node module that "enhanches" the normal node, so that peer reviewing can actually happen.

As you probably all know, I developed my own node_article_update($node) that does all the right stuff.

Now: I absolutely NEED to know if the body of the article has changed or not. This is very crucial, because I have to know if an author has actually changed an article (if s/he has, the article will go back to the editing pipeline).

Display day name in Event calendar instead of just date

Working on the event.module to make it look nice with my theme. Can anyone help me figure out how to output the day name for each calendar event date? I think, through my unethical frankenstein-like experimentation with the events.theme file, that this is the relevant chunk of code that I need to edit to make the day name appear.

Right now it writes the numerical date (03/18 or 03/19) and I need it to also write the name of the day (Friday 03/18 or Friday, Mar 18).

flatten user profile modifications to one page (no secondary_local_tasks)

Hi Drupalers,

I've got my form setup for modifying a user profile such that all the information that is driven by the profile module is showing up under the default secondary local task. ie: the user does not have to click on the sub links when editing their info...from http://foobar/user/12/edit.

My problem is that I can't seem to get the information back into the database...I've used hook_form_alter on the 'user_edit' form_id to modify the form. I'm able to get all the default_values into each field. I'm then tried using hook_user to simulate the action that takes place when the user hits 'save my settings'

Can anyone provide any help?? Here is my hook_user function. I've added the drupal_set_message function and what is odd is that when I attempt to save my settings the only output I get is "For 12, a load operation was invoked.
For , a categories operation was invoked.
For 12, a load operation was invoked.
For 12, a form operation was invoked.
For , a validate operation was invoked. "

is this expected???


function mymodule_user($type, &$edit, &$user, $category = NULL) {
// print "$type";
drupal_set_message("For $user->uid, a $type operation was invoked.");
switch ($type) {
case 'update':
case 'insert':
printArray($edit);
return profile_save_profile($edit, $user, $category);
break;
case 'validate':

URL field in flexinode Problem, changes http:// to http://http//

I know I found the solution for this problem before, but I can't find the post. But pretty much whenever I submit a URL in the URL field in Flexinode, like this "http://drupal.org/node/" it outputs as "http://http//drupal.org/node/". inserting it "drupal.org/node/" makes the link work. (this flexinode type was not themed)

Trouble with differentiated menus

Hi,

I was wondering if there is anyone who could help me. I want to keep a clear static 1. page, with a menubar on top (that's done already).... When I click on one topic in the menu, i would like a block to appear on the left side and only in this new page, with subtopics... I.e.
menutopic = "contact"
Blocktopics (only on this page) = Contact domestic, Contact international, Contact in outer space etc.

Is this possible, or don't I make any sense ? ;o)

Best regards Thomas

Fatal error: Only variables can be passed by reference in /project.module on line 169

Fatal error: Only variables can be passed by reference in /var/www/html/modules/project/project.module on line 169

anyone made the project module work with php5.0.5 and drupal 4.6.5 ...?

Pages

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