You are here

function notifications_custom_user in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_custom/notifications_custom.module \notifications_custom_user()

Implementation of hook_user().

File

notifications_custom/notifications_custom.module, line 97
Custom notifications module

Code

function notifications_custom_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'register':
      return notifications_custom_user_form($account, TRUE);
    case 'update':
    case 'insert':
      if (!empty($edit['notifications_custom'])) {
        notifications_custom_account_update($account, $edit['notifications_custom']);
        $edit['notifications_custom'] = NULL;
      }
      break;
  }
}