function commerce_license_line_item_types in Commerce License 7
Returns an array of license line item types.
4 calls to commerce_license_line_item_types()
- commerce_license_commerce_line_item_presave in ./
commerce_license.module - Implements hook_commerce_line_item_presave().
- commerce_license_flush_caches in ./
commerce_license.module - Implements hook_flush_caches().
- commerce_license_form_commerce_cart_add_to_cart_form_alter in ./
commerce_license.module - Implements hook_form_FORM_ID_alter().
- commerce_license_form_views_form_commerce_cart_form_default_alter in ./
commerce_license.module - Implements hook_form_FORM_ID_alter().
2 string references to 'commerce_license_line_item_types'
- commerce_license_settings_form in includes/
commerce_license.admin.inc - Settings form callback.
- commerce_license_uninstall in ./
commerce_license.install - Implements hook_uninstall().
File
- ./
commerce_license.module, line 327 - Provides a framework for selling access to local or remote resources.
Code
function commerce_license_line_item_types() {
$line_item_types = variable_get('commerce_license_line_item_types', array());
return array_filter($line_item_types);
}