You are here

function entityform_entity_insert in Entityform 7

Implements hook_entity_insert().

Invoke Rules on Entityform it is not a draft.

File

./entityform.module, line 1816
Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface

Code

function entityform_entity_insert($entity, $type) {
  if ($type == 'entityform' && empty($entity->draft)) {
    entityform_invoke_rules($entity, 'submission_rules');
  }
}