function _system_modules_make_pkgid in Util 6.2
Same name and namespace in other branches
- 6.3 system_module.module \_system_modules_make_pkgid()
Build a package id for the fieldset.
2 calls to _system_modules_make_pkgid()
File
- ./
system_module.module, line 254 - Customize System Modules fieldsets
Code
function _system_modules_make_pkgid($package) {
switch ($package) {
case 'Core - required':
case 'Core - optional':
$pkg_id = drupal_strtolower(str_replace(' ', '', $package));
break;
default:
$pkg_id = drupal_strtolower(str_replace(array(
' ',
'/',
'"',
"'",
), array(
'_',
'_',
'',
'',
), $package));
}
return $pkg_id;
}