You are here

function homebox_flush_settings in Homebox 7.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_flush_settings()
  2. 6.2 homebox.module \homebox_flush_settings()
  3. 7.3 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
Submit homebox_admin_flush_form()

File

./homebox.module, line 1337
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_flush_settings($page) {
  return (bool) db_delete('homebox_users')
    ->condition('name', $page->name)
    ->execute();
}