You are here

function _panopoly_magic_fieldable_panels_panes_fieldable_panels_pane_content_type_edit_form_submit in Panopoly Magic 7

Submission callback for fieldable_panels_panes_fieldable_panels_pane_content_type_edit_form().

1 string reference to '_panopoly_magic_fieldable_panels_panes_fieldable_panels_pane_content_type_edit_form_submit'
panopoly_magic_form_alter in ./panopoly_magic.module
Implements hook_form_alter()

File

./panopoly_magic.module, line 612

Code

function _panopoly_magic_fieldable_panels_panes_fieldable_panels_pane_content_type_edit_form_submit($form, &$form_state) {
  $entity = $form_state['entity'];

  // The live preview causes a stale version of the entity to exist in the
  // entity controller's static cache, so we much clear it on submit.
  entity_get_controller('fieldable_panels_pane')
    ->resetCache(array(
    $entity->fpid,
  ));
}