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

Upgrading module to 4.7

I'm upgrading a custom module to 4.7 from 4.6 and I have most issues taken care of, however, the following lines are a bit troublesome to convert:

Where is the data inout to the database?

Hi,
I had a query in the forum module. Where in this module is the data (like the title and description that has been entered by user) saved to the database. I found a code segment like

function forum_insert($node) {
db_query('INSERT INTO {forum} (nid, vid, tid) VALUES (%d, %d, %d)', $node->nid, $node->vid, $node->tid);
}

It is here that the code ids like nid vid and tid are saved to the table forum.

But where is the code that takes the title and description to the table node.

Need a modification with forum module

hi,
I need a modification with the forum module. I am trying to add new form field for entering the contact number of the user who is starting the form. I have added a new field at the end like this


$form['phone_filter'] = array('#type' => 'textfield', '#title' => t('Contact No'), '#default_value' => $node->phone, '#required' => TRUE, '#weight' => 3);

Where is the best place to use curl?

Hi,

I've almost finished a plugin for the video module which allows users to:

How do I add divs round comments from within a module?

I want to enclose some comments (by certain users) with div tags, so they can be styled differently from within a module. How would I do this?

I'd also like to be able to control who can comment on the node type the module has created. Again, any pointers on how to do this? I've looked at the comment api, but couldn't make much sense of it.

Thanks for any help!

Emailpage lives once and a half and won't die even once

With emailpage installed and enabled, every post gets the "email this page" link twice. The first link goes to "this page not found". The second link goes to the forward page.

With email installed but disabled, every post gets the "email this page" link once. It goes to the forward page.

With email deleted (in cPanel, removed from the modules subdirectory and placed in the trash bin), every post gets the "email this page" link once. It goes to the forward page.

This happens even after cookies are deleted.

Weird.

Pages

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