public function ctools_custom_content_ui::list_filter in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 ctools_custom_content/plugins/export_ui/ctools_custom_content_ui.class.php \ctools_custom_content_ui::list_filter()
Determine if a row should be filtered out.
This handles the default filters for the export UI list form. If you added additional filters in list_form() then this is where you should handle them.
Return value
TRUE if the item should be excluded.
Overrides ctools_export_ui::list_filter
File
- ctools_custom_content/
plugins/ export_ui/ ctools_custom_content_ui.class.php, line 85
Class
Code
public function list_filter($form_state, $item) {
if ($form_state['values']['category'] != 'all' && $form_state['values']['category'] != $item->category) {
return TRUE;
}
return parent::list_filter($form_state, $item);
}