Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL-CMS
Commits
b90b8d58
Commit
b90b8d58
authored
Mar 21, 2013
by
Eric Rasmussen
Browse files
[gh-650] Add warning to admins on module uninstall screen
parent
2b5e604e
Changes
1
Hide whitespace changes
Inline
Side-by-side
sites/all/modules/unl/unl.module
View file @
b90b8d58
...
...
@@ -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>'
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment