You are here

function commerce_line_item_handler_filter_line_item_is_referenced::operator_options in Commerce Core 7

Provide a list of options for the default operator form.

Should be overridden by classes that don't override operator_form.

Overrides views_handler_filter::operator_options

File

modules/line_item/includes/views/handlers/commerce_line_item_handler_filter_line_item_is_referenced.inc, line 34

Class

commerce_line_item_handler_filter_line_item_is_referenced
Filters a line item View to only include line items referenced by the order they claim to be a part of in their order_id property.

Code

function operator_options($which = 'title') {
  $options = array();
  $options['IN'] = t('Line item is referenced');
  $options['NOT IN'] = t('Line item is NOT referenced');
  return $options;
}