function homebox_restore_defaults in Homebox 6.2
Same name and namespace in other branches
- 6.3 homebox.module \homebox_restore_defaults()
- 7.3 homebox.module \homebox_restore_defaults()
- 7.2 homebox.module \homebox_restore_defaults()
Purge user settings for a given page. Used to restore a page to default settings.
Parameters
$page: A homebox page object.
1 string reference to 'homebox_restore_defaults'
- homebox_menu in ./
homebox.module - Implementation of hook_menu().
File
- ./
homebox.module, line 1477 - Homebox main file, takes care of global functions settings constants, etc.
Code
function homebox_restore_defaults($form_state, $page) {
return confirm_form(array(
'#redirect' => homebox_get_path($page),
), t('Restore %title to defaults?', array(
'%title' => $page->settings['title'],
)), homebox_get_path($page));
}