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

$user->uid in hook_user for just registered user

I need access to the userid of a new user in the hook_user module on $op = 'insert'.

What I'm trying to do is have a custom form field on the registration form (*not* user edit pages as well), similar to profile.module. But I can't figure out from profile.module where they manage to get the $user->id from. I just get '0' rather than the new user's id... I presume because the new user hasn't got an ID yet.

my blog link

Under 4.5 there was a meny entry called "My Blog" which ever user that was logged on got that entry and that was a good thing for me.

I noticed after upgrading to 4.6 that this is no longer there, unless I'm missing something. I've comparied between 4.5.2 and 4.6 it looks like this was system generated. I don't find anything about this with a search of the site.

How do I get that functionality back?

Blocks lost when changing theme with $custom_theme

I'm going crazy again. When I change the theme using e.g.:

$GLOBALS['custom_theme'] = 'whatever';

... I get the new theme I desire... but I lose all page blocks (both right and left). I can't understand what's going on here.

Cannot use object of type stdClass as array in dba Module

Hi All

I am a drupal newbie learning fast, and am also new to MySql, having previously used Oracle. I have installed the dba module to help with looking after the database but when I click 'view' or 'check' to show the rows in a table I get the following error:

Fatal error: Cannot use object of type stdClass as array in D:\www\drupal\includes\theme.inc on line 652

For 'view', this only happens when there is content in the rows. If a table has 0 rows a page is returned

I have tried different themes but this has no effect

customize fields in rss feed

I am developing module that uses nodeapi to add two additional fields to nodes. How can i include these two new fields in the rss feed for the node?

Thanks

Embed video script in Drupal?

I have know idea how to do this, but was checking out this script, http://cit.ucsf.edu/embedmedia/step1.php and thought it could be something cool to include in Drupal. Could be a good interface to help users display media.

Pages

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