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); }
/** * Implement the filters we added in list_form(). */ function list_filter($form_state, $profile) { if ($form_state['values']['exposed'] != 'all') { if ($form_state['values']['exposed'] != $profile->config['user_interaction']['exposed']) { return TRUE; } } return parent::list_filter($form_state, $profile); }
/** * @todo */ function list_filter($form_state, $item) { if (parent::list_filter($form_state, $item)) { return TRUE; } if ($form_state['values']['theme'] != 'all' && $form_state['values']['theme'] != $item->theme) { return TRUE; } }
function list_filter($form_state, $item) { // Reminder: This returns TRUE to exclude the item. if ($this->entity_handler->entity_type != $item->panelizer_type) { return TRUE; } if ($this->entity_bundle != $item->panelizer_key) { return TRUE; } if ($this->entity_view_mode != $item->view_mode) { return TRUE; } if (!$this->entity_handler->access_default_panelizer_object($item)) { return TRUE; } if (empty($item->title) && $item->name == implode(':', array($this->entity_handler->entity_type, $this->entity_bundle, 'default'))) { $item->title = t('Default'); } return parent::list_filter($form_state, $item); }
function list_filter($form_state, $item) { if (empty($form_state['style_plugins'][$item->settings['style_base']])) { $this->style_plugin = array('name' => 'broken', 'title' => t('Missing plugin'), 'type' => t('Unknown'), 'module' => ''); } else { $this->style_plugin = $form_state['style_plugins'][$item->settings['style_base']]; } // This isn't really a field, but by setting this we can list it in the // filter fields and have the search box pick it up. $item->plugin_title = $this->style_plugin['title']; if ($form_state['values']['type'] != 'all') { list($module, $type) = explode('-', $form_state['values']['type']); if ($module != $this->style_plugin['module'] || $type != $this->style_plugin['type']) { return TRUE; } } if ($form_state['values']['base'] != 'all' && $form_state['values']['base'] != $this->style_plugin['name']) { return TRUE; } return parent::list_filter($form_state, $item); }
function list_filter($form_state, $view) { // Don't filter by tags if all is set up. if ($form_state['values']['tag'] != 'all') { // If none is selected check whether the view has a tag. if ($form_state['values']['tag'] == 'none') { return !empty($view->tag); } else { // Check whether the tag can be found in the views tag. return strpos($view->tag, $form_state['values']['tag']) === FALSE; } } if ($form_state['values']['base'] != 'all' && $form_state['values']['base'] != $view->base_table) { return TRUE; } return parent::list_filter($form_state, $view); }
function list_filter($form_state, $view) { if ($form_state['values']['base'] != 'all' && $form_state['values']['base'] != $view->base_table) { return TRUE; } return parent::list_filter($form_state, $view); }
function list_filter($form_state, $item) { // Additional filter logic for Category. if ($form_state['values']['category'] != 'all' && $form_state['values']['category'] != $item->category) { return TRUE; } return parent::list_filter($form_state, $item); }