function config_perms_parse_path in Custom Permissions 7.2
Same name and namespace in other branches
- 8.2 config_perms.module \config_perms_parse_path()
- 6.2 config_perms.module \config_perms_parse_path()
3 calls to config_perms_parse_path()
- config_perms_admin_form in ./
config_perms.admin.inc - Administration form
- config_perms_admin_form_submit in ./
config_perms.admin.inc - Submit handler.
- config_perms_admin_form_validate in ./
config_perms.admin.inc - Validate handler.
File
- ./
config_perms.module, line 213 - Allows additional permissions to be created and managed through a administration form
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;
}
}