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

How to add a date selector into a form

Hey guys,

I'm building my own modules. And use drupal's form api to generate my
own form. Do you know how to put add a date selector into the form.
It seems cck can do the job. However, I can't use cck here, is there any
other solution for this?

cheers,

Extending taxonomy display: Where do I start?

I've built a tree-structured taxonomy of nodes extended with CCK. I would like to display the taxonomy in a tree structure, but I'm not sure where to begin. What should I search for/study to help me change the display of a taxonomy?

User Registration - Location - Automaticly?

Hey,

I was wondering if there is a way to create a module, that uses something like the Localizer to localize the user and trough user registration add the country hes in automaticly as selected?

Best Regards,

Bojhan

help with hook_user

I'm using LDAP authentication via the LDAP_integration module, but believe it or not, the user's email is not currently part of our LDAP config. I can look it up pretty easily, and I've written the php code to get the email address, but rather than hacking ldapauth.module, I thought I would try to write a separate module.

So I think I want something like:

MyEmail_user($op, &$edit, &$user, $category = NULL) {
  switch($op) {
    case 'insert':
        watchdog('Email', t("Email is getting changed"), WATCHDOG_NOTICE);
//      print_r($edit);
        $edit[mail][init] = my_email_function($user);
        break;
  }
}

I'm pretty sure my module is getting called before the new user gets created. So I'm trying to over-ride what would get saved as the user's email. But this isn't working.

From the hook_user page insert is:

The user account is being added. The module should save its custom additions to the user object into the database and set the saved fields to NULL in $edit.

But I don't understand the details here. How can I save my custom additions to the database if the user hasn't been created yet? And aren't all the fields of $edit being saved?

How to connect created pages with the menu

Hey,

I've installed Drupal and it all works fine.
I only don't know how to connect the created pages with a link of an own made menu. All the created pages now show up on the front page. There is an option to put that off but I've no idea how to link the pages with the menu.

Does someone know how to work this out? I couldn't find it on the forum.

Thanx!

Userpoints Retroactive doesn't work

I installed the userpoints module and, after activating the retroactive module, it still says most users have 0 posts even though most o f them have at least a few.

Pages

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