function context_export_ui::list_form in Context 6.3
Same name and namespace in other branches
- 6 context_ui/export_ui/context_export_ui.class.php \context_export_ui::list_form()
- 7.3 context_ui/export_ui/context_export_ui.class.php \context_export_ui::list_form()
Create the filter/sort form at the top of a list of exports.
This handles the very default conditions, and most lists are expected to override this and call through to parent::list_form() in order to get the base form and then modify it as necessary to add search gadgets for custom fields.
Overrides ctools_export_ui::list_form
File
- context_ui/
export_ui/ context_export_ui.class.php, line 7
Class
- context_export_ui
- CTools export UI extending class. Slightly customized for Context.
Code
function list_form(&$form, &$form_state) {
parent::list_form($form, $form_state);
$form['top row']['submit'] = $form['bottom row']['submit'];
$form['top row']['reset'] = $form['bottom row']['reset'];
$form['bottom row']['#access'] = FALSE;
// Invalidate the context cache.
context_invalidate_cache();
return;
}