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

In drupal 4.7 new form API, how to make use of the new date type?

Hi, I'm creating a new module, I have a field named "Due Date", which need three select drop down in mm/dd/yyyy format.

So at first, I use
$form[due_date] = array('#type' => 'date', ......);

A problem with flexinode

Hi,

I have a problem. I just dont know what should i do to fix it. I installed the flexinode plugin to my drupal site. And when i try to add new content type i have and error:

Fatal error: Call to undefined function: drupal_get_form() in /home/keldrir2/public_html/proov/modules/flexinode/flexinode.module on line 831

And when i try to look the Content Types i have another error:

Fatal error: Call to undefined function: drupal_add_js() in /home/keldrir2/public_html/proov/modules/flexinode/flexinode.module on line 361

How to use categories/taxonomy feature?

I want to use the categories and taxonomy feature for a single node such as "story".

The $user object - trying to understand

I want to develop a module to handle an external db that I want to attach to the drupal site I'm working on. I have extended the user profile to gather info needed for this other db.

Customizing comments

I posted this question on another topic called Customizing Comments but the thread die. I wonder if someone can help me.

I am trying to create a module that will allow the user to vote on a node and comment on that vote in the comment section. I have two questions.

First, how do I get the node id number while in the comment section? There is great documentation on the variables available through phptemplate in $node. Unfortunately there is not the same for comments.

Query problems: like or = in UTF8???

Hi everybody,

after upgrading my development install from 4.7b3 to 4.7b4
I'm facing some strange mysql behaviour...

this query does not return any result:
SELECT n.nid, n.created FROM node n WHERE n.type = 'story' AND n.status = 1 ORDER BY n.created DESC;

instead this one works and return latests nodes of type story:
SELECT n.nid, n.created FROM node n WHERE n.type like 'story' AND n.status = 1 ORDER BY n.created DESC;

The only differece between the two are n.type = 'story' in the first and n.type like 'story' in the second.

Pages

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