function _coder_settings_array in Coder 5
Same name and namespace in other branches
- 5.2 coder.module \_coder_settings_array()
- 6.2 coder.module \_coder_settings_array()
- 6 coder.module \_coder_settings_array()
2 calls to _coder_settings_array()
File
- ./
coder.module, line 363 - Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.
Code
function _coder_settings_array(&$form_values, $type) {
$typekey = "coder_{$type}s-";
$typelen = strlen($typekey);
$systems = array();
foreach ($form_values as $key => $value) {
if (substr($key, 0, $typelen) == $typekey) {
if ($value == 1) {
$system = substr($key, $typelen);
$systems[$system] = 1;
}
unset($form_values[$key]);
}
}
return $systems;
}