You are here

function ctools_export_ui_heartbeat_template::edit_save_form in Heartbeat 7

Called to save the final product from the edit form.

Overrides ctools_export_ui::edit_save_form

File

modules/heartbeat_ui/plugins/export_ui/ctools_export_ui_heartbeat_template.class.php, line 277
Ctools export UI for a heartbeat template @author stalski

Class

ctools_export_ui_heartbeat_template
@file Ctools export UI for a heartbeat template @author stalski

Code

function edit_save_form($form_state) {
  parent::edit_save_form($form_state);

  // Entity bundle has been saved.
  $op = $form_state['form type'] == 'add' ? 'insert' : 'update';
  field_attach_insert('heartbeat_activity', $form_state['item']);
  module_invoke_all("entity_{$op}", $form_state['item'], 'heartbeat_activity');
  field_info_cache_clear();
}