comparison modules/node/node.admin.inc @ 5:2427550111ae 6.2

Drupal 6.2
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:30:08 +0100
parents c1f4ac30525a
children 4347c45bb494
comparison
equal deleted inserted replaced
4:d94886ac61a0 5:2427550111ae
1 <?php 1 <?php
2 // $Id: node.admin.inc,v 1.19 2008/02/03 19:39:52 goba Exp $ 2 // $Id: node.admin.inc,v 1.19.2.1 2008/03/21 22:01:05 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Content administration and module settings UI. 6 * Content administration and module settings UI.
7 */ 7 */
8 8
9 /** 9 /**
10 * Menu callback; presents general node configuration options. 10 * Menu callback; presents general node configuration options.
11 */ 11 */
12 function node_configure() { 12 function node_configure() {
13 // Only show rebuild button if there is 0 or more than 2 rows in node_access table, 13 // Only show rebuild button if there are either 0, or 2 or more, rows
14 // or if there are modules that implement node_grant. 14 // in the {node_access} table, or if there are modules that
15 // implement hook_node_grants().
15 if (db_result(db_query('SELECT COUNT(*) FROM {node_access}')) != 1 || count(module_implements('node_grants')) > 0) { 16 if (db_result(db_query('SELECT COUNT(*) FROM {node_access}')) != 1 || count(module_implements('node_grants')) > 0) {
16 $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>'; 17 $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>';
17 $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>'; 18 $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>';
18 19
19 $form['access'] = array( 20 $form['access'] = array(