You are here

function commerce_node_checkout_get_node_type_enabled_products in Commerce Node Checkout 7

Fetch the enabled products for a given node.

Parameters

$type: Node type machine name.

Return value

An array of product IDs that are enabled for the given node type.

6 calls to commerce_node_checkout_get_node_type_enabled_products()
commerce_node_checkout_expire_adjust_expiration_access in commerce_node_checkout_expire/commerce_node_checkout_expire.module
Access callback to adjust a node's expiration date.
commerce_node_checkout_expire_relist_access in commerce_node_checkout_expire/commerce_node_checkout_expire.module
Access callback to check associated node is able to be relisted.
commerce_node_checkout_field_attach_form in ./commerce_node_checkout.module
Implements hook_field_attach_form().
commerce_node_checkout_field_extra_fields in ./commerce_node_checkout.module
Implements hook_field_extra_fields().
commerce_node_checkout_form_node_type_form_alter in ./commerce_node_checkout.module
Implements hook_form_FORM_ID_alter().

... See full list

File

./commerce_node_checkout.module, line 162
Provides core hooks and the like for the module

Code

function commerce_node_checkout_get_node_type_enabled_products($type) {
  return variable_get('commerce_node_checkout_products_' . $type, array());
}