function spaces_customize_form in Spaces 5.2
Same name and namespace in other branches
- 6 spaces_admin.inc \spaces_customize_form()
- 6.2 spaces_admin.inc \spaces_customize_form()
Feature customization form.
1 string reference to 'spaces_customize_form'
- spaces_customize in ./
spaces_admin.inc - Customization page callback.
File
- ./
spaces_admin.inc, line 733
Code
function spaces_customize_form($space, $feature) {
$form = array();
$form['space'] = array(
'#type' => 'value',
'#value' => $space,
);
$form['feature'] = array(
'#type' => 'value',
'#value' => $feature,
);
$customizers = spaces_customizers();
foreach ($customizers as $id => $customizer) {
$form[$id] = array(
'#title' => t($customizer->name),
'#type' => 'fieldset',
'#tree' => TRUE,
'#theme' => 'spaces_customize_item',
'#collapsible' => TRUE,
);
$form[$id] = $form[$id] + $customizer
->form($space, $feature);
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save settings'),
);
$form['reset'] = array(
'#type' => 'submit',
'#value' => t('Reset to defaults'),
);
$form['#theme'] = 'spaces_form';
return $form;
}