function oa_core_configure_form in Open Atrium Core 7.2
Configuration Form for Open Atrium
1 string reference to 'oa_core_configure_form'
- oa_core_menu in ./
oa_core.module - Implements hook_menu().
File
- ./
oa_core.module, line 367
Code
function oa_core_configure_form($form, &$form_state) {
// blank for for now. Other modules can alter this to add stuff
$form = array();
drupal_add_js("misc/collapse.js");
drupal_add_js("misc/vertical-tabs.js");
$form['oa_settings'] = array(
'#type' => 'vertical_tabs',
'#weight' => 99,
'#prefix' => '<div class="oa-vertical-tabs">',
'#suffix' => '</div>',
);
$hook = 'oa_settings_form';
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
if (function_exists($function)) {
$child_forms = call_user_func_array($function, array(
&$form_state,
));
foreach ($child_forms as $key => $child_form) {
if (!isset($form[$child_form['caption']])) {
$form[$child_form['caption']] = array(
'#type' => 'fieldset',
'#title' => $child_form['caption'],
'#group' => 'oa_settings',
'#attributes' => array(
'class' => array(
'collapsible',
),
),
);
}
$form[$child_form['caption']][] = $child_form['form'];
if (!empty($child_form['submit'])) {
$form['#submit'][] = $child_form['submit'];
}
}
}
}
return system_settings_form($form);
}