You are here

function homebox_restore_defaults_submit in Homebox 6.3

Same name and namespace in other branches
  1. 6.2 homebox.module \homebox_restore_defaults_submit()
  2. 7.3 homebox.module \homebox_restore_defaults_submit()
  3. 7.2 homebox.module \homebox_restore_defaults_submit()

File

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

Code

function homebox_restore_defaults_submit($form, $form_state) {
  global $user;
  db_query("DELETE FROM {homebox_users} WHERE uid = %d AND name = '%s'", $user->uid, $form['#parameters'][2]->name);
}