hook_user_insert called after user object created (authenticated) ?

Hi,

i am using hook_user_insert to add some code

function user_access_user_insert(&$edit, $account, $category) {
global $user;
print $user->uid;
}

but $user->uid is not defined, hook_user_insert called after the user account is created ? if not, how to add code after user account created?

Is file_move() enough for renaming files after upload?

I want to add the file timestamp to the end of uploaded file.I used the following code:

How to query directly from database for filter when creating views.

How can I query directly from database for filter when creating views.
For example I have a query how can I directly execute this in creating views.
Thanks so much

Issue with 'allow multiple values' and spaces in url for contextual filters

Hi,
I have a content type that contains several taxonomy tags. In addition to that I have a view, where the definition of each tag can be displayed. This is solved by creating a view that displays those definitions and has a contextual filter, so it only displays those tags that are in the URL.

So far everything works, the problem occurs when I want to display multiple tags containing spaces.

PDOException: SQLSTATE[42000]: Syntax error on installing drupal 7.2

I am trying to install to do a new install of drupal 7.2 as I have run into problmes upgrading a version 6.2 install, but am running into the following error:

7PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1: SELECT * FROM {menu_router} WHERE path IN () ORDER BY fit DESC LIMIT 0, 1; Array ( ) in menu_get_item() (line 445 of ../includes/menu.inc)

error message on module install

attempting to install a any module, my error message is

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x