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

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-

mIRC to Drupal

I have searched on IRC and mIRC though I admit that my search was a bit hasty. I really want to submit this idea to the community.

The idea is more of an mIRC scripting matter than an Drupal one, though a Drupal module which deals with IRC would be amazing.

simple username

I have a very simple question. I'm somewhat new to Drupal, and am trying to simply obtain and echo the current user's name. I've been working on doing this, but can't quite get it to work. I'd appreciate the help very much.

Thank you.

Pages

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