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

Repeating/Reoccuring Events

I uploaded a patch that contains a bunch of changes to the event module including support for repeating events. Its highly untested.

You can see it here: http://drupal.org/node/view/4122

create taxonomy term in code

Does anyone know if/how I can create a new term for an existing taxonomy inside the code? ie NOT having to use the form to create a new term?

Thanks, Darrian

htmlarea bug?

Hi
htmlarea version 4.4.0 not change background color

also demo site http://www.heydon.com.au/htmlareademo/ don't change backround color

the source analisys in demo site find this error:

Fatal error: Call to undefined function: drupal_set_html_head() in /var/www/heydon/modules/htmlarea.module on line 121

error is referred to color function?
is a bug?

sorry for mi english

zopar

Anchor Filter Module

This module will fix problems with using anchors in drupal. I don't know how to get it added here on this site. I would be happy to if someone could tell me how. Thanks!

http://www.etopian.net/drupal

search user

Hi
exist module for search user for city, age gendre (male,female)?
how to create a page with all male and female user? example: http://drupal.org/profile/gender/female/

tnx
zopar

Node object loses properties after _insert hook?

Greetings!

I have run into a situation where the node object seems to lose its properties when node.module invokes module _insert hooks. Here is a case:

0. some.module is a module that adds a node and a related taxonomy term.
1. User submits new content from some.module
2. some.module processes the user input through _validate, then (assuming valid input) _insert.
3. _insert then saves the taxonomy term a la:

  $edit["name"] = $node->title;
  $edit["vid"] = variable_get("some_vid", 0);
  $edit["synonyms"] = $node->synonyms;
  $edit["description"] = $node->body;
  $edit = taxonomy_save_term($edit);
  $node->taxonomy = array($edit["tid"]);

4. A trace of $node->taxonomy reveals that it is an array containing the desired tid.
5. The node object is then, presumably, passed on to taxonomy.module.
6. A trace of $node->taxonomy in taxonomy.module reveals that it is empty.

Now, is this simply because the node object is not passed by reference? If so, any ideas on how I could create the functionality desribed in the case without altering the drupal core? I gave thought to using node_submit() or taxonomy_node_save(), but, from my understanding, those would only result in multiple DB queries; the latter creates duplicate nodes and both methods result in duplicate calls to taxonomy_node_save() with an empty $node->taxonomy (resulting in empty taxonomy references for the inserted node) due to the behavior of node.module's call to some.module's _insert hook.

Or am I completely off my rocker?

Cheers!

-t-

Pages

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