function book_access_ui_rebuild_all in Book access 7.2
Simple form handler to launch a rebuild-all pipeline.
1 string reference to 'book_access_ui_rebuild_all'
- book_access_ui_menu in ./
book_access_ui.module - Implements hook_menu().
File
- ./
book_access_ui.admin.inc, line 380 - Administration interface for the Book access module.
Code
function book_access_ui_rebuild_all($form, &$form_state) {
$form['book_access_rebuild']['heading'] = array(
'#markup' => t('<h1>Rebuild all book access permissions</h1>'),
);
$form['book_access_rebuild']['content'] = array(
'#markup' => t('<p>This will rebuild <em>all</em> book permissions, refreshing node_access with values from book_access_author, book_access_role, book_access_user.</p><p><strong>Only</strong> do this if you have a very good reason to suspect that your node_access and book_access permissions are out of sync, as if you do this while there is a bug with your book_access permissions, you will propagate them to <em>all</em> books.</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, rebuild permissions!'),
);
return $form;
}