function _ldaphelp_get_form_values in LDAP integration 6
1 call to _ldaphelp_get_form_values()
- _ldaphelp_get_configuration in ldaphelp/
ldaphelp.module - Get config information for general config and each ldap server defined.
File
- ldaphelp/
ldaphelp.module, line 256 - The ldaphelp module is a module to help admins debug ldap_integration modules.
Code
function _ldaphelp_get_form_values(&$form) {
$values = array();
foreach ($form as $key => $item) {
if ($form[$key]['#type'] == 'fieldset') {
foreach ($form[$key] as $subskey => $subitem) {
if (drupal_substr($subskey, 0, 1) != '#') {
$values[$subskey] = $subitem['#value'] ? $subitem['#value'] : $subitem['#default_value'];
}
}
}
elseif (drupal_substr($key, 0, 1) != '#' && $key != 'submit' && $key != 'reset') {
$values[$key] = $item['#value'] ? $item['#value'] : $item['#default_value'];
}
}
return $values;
}