You are here

function commerce_pricelist_list_filter_get in Commerce Pricelist 7

Get a filter value form a price list entity

Parameters

$entity:

$filter:

4 calls to commerce_pricelist_list_filter_get()
commerce_pricelist_role_commerce_pricelists_list_info_alter in commerce_pricelist_role/commerce_pricelist_role.module
Add info to pricelist overview
commerce_pricelist_role_form_commerce_pricelist_list_form_alter in commerce_pricelist_role/commerce_pricelist_role.module
Implements hook_form_BASE_FORM_ID_alter().
commerce_pricelist_user_commerce_pricelists_list_info_alter in commerce_pricelist_user/commerce_pricelist_user.module
Add info to pricelist overview
commerce_pricelist_user_form_commerce_pricelist_list_form_alter in commerce_pricelist_user/commerce_pricelist_user.module
Implements hook_form_BASE_FORM_ID_alter().

File

./commerce_pricelist.module, line 518
Implements the basic functionality required for price lists

Code

function commerce_pricelist_list_filter_get($entity, $filter_key) {
  return isset($entity->data['filter'][$filter_key]) ? $entity->data['filter'][$filter_key] : array();
}