You are here

function homebox_flush_settings in Homebox 6.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_flush_settings()
  2. 7.3 homebox.module \homebox_flush_settings()
  3. 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()
homebox_admin_flush_form_submit in ./homebox.admin.inc

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;
}