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

Node type 0 (zero)

I am updating my module from 4.6 to 4.7. It was stable at 4.6 and fully functioning.

Now, using 4.7 platform and i've updated the module, but when I go to add a "node" using this module, I see the form, but when it comes to submitting it:
- The confirmation doesn't recognise the content type: "Your was created."
- The data is not added to the module's tables
- In "node" table, the row is added but for "type" field it says "0" (zero)

It shouldn't be the database issue because my other similar modules work, after update.

Any ideas?

Cas Nuy updates drupal/Moodle integration module - now supports 4.7.3

I sent a mail to Cas Nuy, the developer of the Drupal/Moodle Integration module and requested him to update it to work with Drupal 4.7.3.

Guess what he does? He takes 2 days but sends me an email with the updated code. I am attaching it to this post.

I have seen several posts where people have been asking for an updated module. Please donate to Cas Nuy (cas@nuy.info) if you find this module useful.

modules extending the comment module

I want to know if it is possible to extend the comment module the same way a module can extend a node. The alternative is writing my own comment module when all I want to do is have my module add a field to the comment form.

TinyMCE and my Users/Data variables

Hi everybody,

I have the tinymce module actived on my web for authenticated user. I update drupal and modules from 4.6.7 to 4.7.x. I see that my old users can't see the tinymce, because they have disabled it by default (maybe for configuration from old 4.6.x). In the DB in user / data I can see the old user this variables:

Is this possible in just one SQL query?

Hello,
I'd like to find a solution for this: http://drupal.org/node/78973

Suppose I have a table like this:

nid trid lang
2   0    ia 	
1   1    ia 	
3   1    en 	
4   2    ia 	
5   2    en 	
6   2    it 	
7   0    ia 	
8   4    ia 	
9   4    en 	
10  4    it 	
11  0    ia 	

The "nid" is the node number, "lang" is the language the node is written in, and "trid" is used to group together the translation equivalents: that is, nodes 4,5,6 describe the same content in three different languages. If "trid" is 0, then the node has not been translated into other languages.

What I'm looking for is a query that filters out records in this table like this ("lang_user" and "lang_default" are two PHP variables which are known at the time the query is written; think of them as "en" and "ia"):
1) if "trid" is 0, then keep the record
2) if lang = lang_user, keep this record and filter out all other records having the same "trid"
3) if lang = lang_default, keep this record and filter out all other records having the same "trid"
4) filter out this record

My question is, can all this be achived within a single SQL statement (I guess no, but I'm not a SQL expert)?
If not, I guess I'll have to code a patch to drupal core, if I want to solve the issue http://drupal.org/node/78973, I am right?

A page of just Nodes that have new comments.

Is there not a way to have a seperate page that has all the nodes (pages) which have new comments added? (You know, the posts that say 2 new comments and etc.) Shouldn't filtering do this or would it take a new module?

Thanks,
Caleb

Pages

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