function eck__entity__add in Entity Construction Kit (ECK) 7
Same name and namespace in other branches
- 7.3 eck.entity.inc \eck__entity__add()
- 7.2 eck.entity.inc \eck__entity__add()
Call back for the local action add (It adds a new entity)
Parameters
$entity_type: (String) entity type
$bundle: (String) Bundle
File
- ./
eck.entity.inc, line 160 - All the menus, pages, and functionality related to administering entities.
Code
function eck__entity__add($entity_type, $bundle) {
$entity = eck__entity_create($entity_type->name, $bundle->name);
return drupal_get_form("eck__entity__form", $entity);
}