function config_perms_parse_path in Custom Permissions 6.2
Same name and namespace in other branches
- 8.2 config_perms.module \config_perms_parse_path()
- 7.2 config_perms.module \config_perms_parse_path()
3 calls to config_perms_parse_path()
- config_perms_admin_form_submit in ./
config_perms.admin.inc - Submit handler.
- config_perms_ahah in ./
config_perms.admin.inc - Interface for the AHAH management.
- _config_perms_form in ./
config_perms.admin.inc - Permissions table for the administration form
File
- ./
config_perms.module, line 224 - Adds more granular permissions for items under 'administer site configuration'.
Code
function config_perms_parse_path($path) {
if (is_array($path)) {
$string = implode("\n", $path);
return $string;
}
else {
$path = str_replace(array(
"\r\n",
"\n\r",
"\n",
"\r",
), "\n", $path);
$parts = explode("\n", $path);
return $parts;
}
}