You are here

public function entity_views_handler_relationship_by_bundle::options_submit in Entity API 7

Make sure only checked bundle types are left.

Overrides views_handler::options_submit

File

views/handlers/entity_views_handler_relationship_by_bundle.inc, line 68
Contains the entity_views_handler_relationship_by_bundle class.

Class

entity_views_handler_relationship_by_bundle
Relationship handler for entity relationships that may limit the join to one or more bundles.

Code

public function options_submit(&$form, &$form_state) {
  $form_state['values']['options']['bundle_types'] = array_filter($form_state['values']['options']['bundle_types']);
  parent::options_submit($form, $form_state);
}