[Imc-drupal-dev] newbie question

ekes ekes at aktivix.org
Fri Dec 8 17:22:33 PST 2006


ameba00x wrote:
> I'm using the newswire module with the normal drupal db, I modified a
> little bit the select query (just removing the n.body), i'm using the
> normal drupal anonimous posting to post to newswire a story.

I've not used the newswire module. Using the taxonomy block module (
https://en.wiki.aktivix.org/IMC-York/Drupal#taxonomy_block ) to create a
newswire block instead. I think this is a common way of doing this.
However...

> I have a couple of questions:
> 
> 1- Newswire story comes from anonymous (uid=0) , why not filter the
> newswire with this field?

But people logged in do post newswire stories. It is not only anonymous
people who post newswire stories.

> 2- I have created a query that put in the term_node the nid and the
> tid (constant, =1, because is the newswire)

I'm not sure I understand this. I assume it is something specific about
the module.

> 3- I had to comment out this line of code in node.module script because
> after drupal make the insert query, it does a delete query too.
> 
> // Call the node specific callback (if any):
>   if ($node->is_new) {
>     node_invoke($node, 'insert');
>     //node_invoke_nodeapi($node, 'insert'); 
>   }
> 
> by commenting the line above it doesn't make the delete query but i
> don't know what happen on the whole software.

I don't know where the problem arises but this is a *very* important bit
of code. It calls the hook for all other modules to be able to change
what happens on insert of a node.
http://api.drupal.org/api/4.7/function/hook_insert
Deleting it will break any modules that require anything additional done
on insert.

ekes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.indymedia.org/pipermail/imc-drupal-dev/attachments/20061209/b027fe3e/attachment.pgp 


More information about the Imc-drupal-dev mailing list