function book_access_ui_reset_all_to_defaults in Book access 7.2
Simple form handler to reset all book access to defaults.
1 string reference to 'book_access_ui_reset_all_to_defaults'
- book_access_ui_menu in ./
book_access_ui.module - Implements hook_menu().
File
- ./
book_access_ui.admin.inc, line 230 - Administration interface for the Book access module.
Code
function book_access_ui_reset_all_to_defaults($form, &$form_state) {
$form['destination'] = array(
'#type' => 'hidden',
'#value' => drupal_get_destination(),
);
$form['book_access_rebuild']['heading'] = array(
'#markup' => t('<h1>Reset all to default</h1>'),
);
$form['book_access_rebuild']['content'] = array(
'#markup' => t('<p>This will reset <em>all</em> book permissions to their defaults. This will leave user-specific permissions alone, but otherwise everything will get clobbered.</p><p>Be very sure this is what you want to do, this is irreversible!</p>'),
);
$form['return'] = array(
'#markup' => t('<p><a href=\'/admin/content/book/settings\'>Never mind, go back!</a></p>'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('I\'m sure, reset all (non-user-specific) book permissions to their defaults!'),
);
return $form;
}