⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bellow is the example for dynamically creating/deleting/modifying field-collection item for any node. | |
Suppose 'field_page_collection1' is the field collection for the 'page' content type having two text fields 'field_page_collection1_text1', 'field_page_collection1_text2'. | |
To attach or create field-collection item for node having node id 1. | |
<?php | |
$node = node_load(1); | |
$field_collection_item = entity_create('field_collection_item', array('field_name' => 'field_page_collection1')); // Create new field collection item. | |
$field_collection_item->setHostEntity('node', $node); // Attach it to the node. |
- Demo at: https://bcommerce-exdrupal.rhcloud.com/upgrade
- You don't worry about your cart. We can programatically process to the checkout page.
- I created schema for tables to save log instead use watchdog.
- I log RAW Requests and RAW Responses sent and received from BrainTree (until test yet done)
From Wikipedia: Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.
Built with D3.js.
NewerOlder