function homebox_flush_settings in Homebox 6.2
Same name and namespace in other branches
- 6.3 homebox.module \homebox_flush_settings()
- 7.3 homebox.module \homebox_flush_settings()
- 7.2 homebox.module \homebox_flush_settings()
Flush all user settings for a given page
Parameters
$page: A page object
Return value
TRUE if the operation was successful, otherwise FALSE
1 call to homebox_flush_settings()
File
- ./
homebox.module, line 1340 - Homebox main file, takes care of global functions settings constants, etc.
Code
function homebox_flush_settings($page) {
if (db_query("DELETE FROM {homebox_users} WHERE name = '%s'", $page->name)) {
return TRUE;
}
return FALSE;
}