You are here

function panels_layouts_ui::list_filter in Panels 7.3

Same name and namespace in other branches
  1. 6.3 plugins/export_ui/panels_layouts_ui.class.php \panels_layouts_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

plugins/export_ui/panels_layouts_ui.class.php, line 173
Contains the administrative UI for reusable layouts.

Class

panels_layouts_ui
@file Contains the administrative UI for reusable layouts.

Code

function list_filter($form_state, $item) {
  if ($form_state['values']['category'] != 'all' && $form_state['values']['category'] != $item->category) {
    return TRUE;
  }
  if ($form_state['values']['plugin'] != 'all' && $form_state['values']['plugin'] != $item->plugin) {
    return TRUE;
  }
  return parent::list_filter($form_state, $item);
}