/**
  * Overrides ctools_export_ui::edit_save_form().
  *
  * Clear menu cache in case the SPARQL endpoint path was modified.
  */
 function edit_save_form($form_state)
 {
     parent::edit_save_form($form_state);
     if (!empty($form_state['plugin']['schema']) && $form_state['plugin']['schema'] == 'arc2_store_settings') {
         menu_rebuild();
     }
 }
 /**
  * Ensure menu gets rebuild after saving a new type.
  */
 function edit_save_form($form_state)
 {
     parent::edit_save_form($form_state);
     entity_info_cache_clear();
     menu_rebuild();
     if ($form_state['op'] === 'save_continue') {
         $this->plugin['redirect']['save_continue'] = $this->field_admin_path($form_state['values']['name'], 'fields');
     }
 }
 /**
  * Called to save the final product from the edit form.
  */
 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();
 }