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

hook_form 4.7.x and 5.0

Hi,
I'm new to drupal and startet writing my own modules. Now that I have tried the upcoming 5.0 version of drupal I want to continue developing my modules for the new version.

I created a new node type and extended the node form by using the hook_form(). According to http://drupal.org/node/64279 (Converting 4.7.x modules to 5.x) this hook does not seem to have been changed or removed so I thought at least displaying the nodes form should work. But it seems I'm wrong.

How to do extra calls when settings page is updated.

Within a module I have hook_settings()... where the form and its values are defined...

Is their any hook I can call when a user changes values on the settings form?

When a user has changed a value I need to call some functionality of another module...

edit content shows default values

I have built a simple form which seems to be capturing the data ok as I have checked the database that they are inserted correctly. When I tried to edit the form, the form displays default values for each field instead of the data from the database, what could be wrong?

%d and %s in hooks

When you have something like

function hook_insert($node) {
  db_query("INSERT INTO {mytable} (nid, extra)
    VALUES (%d, '%s')", $node->nid, $node->extra);
} 

Does %d mean number or integer and %s mean string? are there any others? Is there a page in the handbook that explain this?

submitting a form

Hi,

For a school project I have to adjust the chatbox module. Now I'm trying to make a form, but it won't work and I don't know what the problem is. I'm new using Drupal and I've read the handbooks and I've also read the Forms API Quickstart Guide, but I still don't understand what I'm doing wrong. Here's what I have so far:

PhpGedView

Hi all,

I have just tried the PhpGedView module. I have been using PhpGedView for some time and thought I would have a go at integrating it with Drupal. I have a test system setup with the latest Drupal and PhpGedView. I have followed the installation instructions for the module (I am a little hazy on what exactly step 3 of PHPGEDVIEW SETUP refers to).

The module is installed and I can see the Family Tree page. However, when I log into Drupal, it dosnt also log me into PhpGedView. I also can no longer log directly into PhpGedView.

Pages

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