Skip to content
Snippets Groups Projects
Commit b90b8d58 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-650] Add warning to admins on module uninstall screen

parent 2b5e604e
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,14 @@ require_once dirname(__FILE__) . '/includes/common.php'; ...@@ -7,8 +7,14 @@ require_once dirname(__FILE__) . '/includes/common.php';
*/ */
function unl_help($path, $arg) { function unl_help($path, $arg) {
switch ($path) { switch ($path) {
case 'admin/modules/uninstall':
if ((module_exists('unl_multisite') && conf_path() == 'sites/default') || unl_table_is_shared('role_permission')) {
return '<h1>Be careful! Uninstalling a module clears its permissions which are shared globally between sites!</h1>';
}
case 'admin/people/permissions': case 'admin/people/permissions':
return '<h1>Be careful! Permissions are shared globally between sites on UNLcms!</h1>'; if ((module_exists('unl_multisite') && conf_path() == 'sites/default') || unl_table_is_shared('role_permission')) {
return '<h1>Be careful! Permissions are shared globally between sites!</h1>';
}
case 'user/unl/technical_feedback': case 'user/unl/technical_feedback':
return '<p>Consider visiting the Web Developer Network <a href="http://wdn.unl.edu/help/irc.shtml" target="_blank">chat room</a> as well.</p>'; return '<p>Consider visiting the Web Developer Network <a href="http://wdn.unl.edu/help/irc.shtml" target="_blank">chat room</a> as well.</p>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment