Commit b90b8d58 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

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

parent 2b5e604e
......@@ -7,8 +7,14 @@ require_once dirname(__FILE__) . '/includes/common.php';
*/
function unl_help($path, $arg) {
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':
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':
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>';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment