function scald_unregister_author in Scald: Media Management made easy 6
Unregister an Author with Scald Core.
Parameters
$aid: The Author ID of the Author to remove.
Return value
Boolean representing the success or failure of the unregistration.
1 call to scald_unregister_author()
- scald_user in ./
scald.module - Implementation of hook_user().
File
- ./
scald.module, line 1791
Code
function scald_unregister_author($aid = NULL) {
if (!is_numeric($aid)) {
return FALSE;
}
db_query("DELETE FROM {scald_authors} WHERE aid = %d", $aid);
db_query("DELETE FROM {scald_atom_authors} WHERE aid = %d", $aid);
return TRUE;
}