Skip to content
Snippets Groups Projects
Commit 2e049e5b authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #226479 by brianV: 'clean-up' rebuild permission checks.

parent f63727d1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -10,10 +10,6 @@
* Menu callback; presents general node configuration options.
*/
function node_configure() {
// Only show rebuild button if there are either 0, or 2 or more, rows
// in the {node_access} table, or if there are modules that
// implement hook_node_grants().
if (db_query('SELECT COUNT(*) FROM {node_access}')->fetchField() != 1 || count(module_implements('node_grants')) > 0) {
$status = '<p>' . t('If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Possible causes for permission problems are disabling modules or configuration changes to permissions. Rebuilding will remove all privileges to posts, and replace them with permissions based on the current modules and settings.') . '</p>';
$status .= '<p>' . t('Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed posts will automatically use the new permissions.') . '</p>';
......@@ -27,8 +23,6 @@ function node_configure() {
'#value' => t('Rebuild permissions'),
'#submit' => array('node_configure_access_submit'),
);
}
$form['default_nodes_main'] = array(
'#type' => 'select', '#title' => t('Number of posts on main page'),
'#default_value' => 10,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment