public function CommerceNodeCheckoutExpireTests::getNodeNotificationData in Commerce Node Checkout 7
Get node notification data from the custom field.
Parameters
$node: A node object
Return value
The notification data stored in the custom field.
1 call to CommerceNodeCheckoutExpireTests::getNodeNotificationData()
- CommerceNodeCheckoutExpireTests::testCommerceNodeCheckoutExpire in commerce_node_checkout_expire/
commerce_node_checkout_expire.test - Test everything we need to do with content, expiration, notifications, etc.
File
- commerce_node_checkout_expire/
commerce_node_checkout_expire.test, line 95 - Provides tests for Commerce Node Checkout Expire process.
Class
- CommerceNodeCheckoutExpireTests
- Test class.
Code
public function getNodeNotificationData($node) {
$wrapper = entity_metadata_wrapper('node', $node);
return $wrapper->{COMMERCE_NODE_CHECKOUT_NOTIFICATION_FIELD}
->value();
}