*/
function createUser(&$params, $mail) {
$form_state = form_state_defaults();
-
+
$form_state['input'] = array(
'name' => $params['cms_name'],
'mail' => $params[$mail],
drupal_set_message($message);
}
- function permissionDenied() {
- drupal_access_denied();
- }
-
function logout() {
module_load_include('inc', 'user', 'user.pages');
return user_logout();
drupal_set_message($message);
}
- function permissionDenied() {
- drupal_access_denied();
- }
-
function logout() {
module_load_include('inc', 'user', 'user.pages');
return user_logout();
global $user;
return $this->getUniqueIdentifierFromUserObject($user);
}
+
+ /**
+ * Action to take when access is not permitted
+ */
+ function permissionDenied() {
+ drupal_access_denied();
+ }
}