function homebox_restore_defaults_submit in Homebox 6.3
Same name and namespace in other branches
- 6.2 homebox.module \homebox_restore_defaults_submit()
- 7.3 homebox.module \homebox_restore_defaults_submit()
- 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);
}