You are here

function entityform_entity_update in Entityform 7

Implements hook_entity_update().

Invoke Rules on Entityform it is not a draft.

File

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

Code

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