public function GroupUIController::overviewForm in Group 7
Builds the group overview form.
@todo Dynamic pager amount.
Overrides EntityDefaultUIController::overviewForm
File
- classes/
group.ui_controller.inc, line 128 - Defines the Entity API UI class for groups.
Class
- GroupUIController
- UI class for groups.
Code
public function overviewForm($form, &$form_state) {
// Load the file holding most of the form part builders.
form_load_include($form_state, 'inc', 'group', 'admin/group');
// If the form was rebuilt from an operation, we show that form instead.
if ($form_state['rebuild']) {
$args = array_merge(array(
$form,
&$form_state,
), $form_state['rebuild_info']['args']);
return call_user_func_array($form_state['rebuild_info']['callback'], $args);
}
// The primary submit handler for this form is the filter.
$form['#submit'] = array(
'group_filters_form_submit',
);
// Build the overview form with filters and bulk operations.
$form['filters'] = group_filters_form();
$form['options'] = group_options_form();
$form['groups'] = group_groups_form($this->overviewPagerLimit);
$form['pager'] = array(
'#markup' => theme('pager'),
);
return $form;
}