You are here

function simplemeta_form_submit_save in Simple Meta 7.2

SimpleMeta entity form submit callback on save op.

1 string reference to 'simplemeta_form_submit_save'
simplemeta_form in ./simplemeta.admin.inc
SimpleMeta entity form callback.

File

./simplemeta.admin.inc, line 89
Admin UI, callbacks and helper functions.

Code

function simplemeta_form_submit_save($form, &$form_state) {
  $entity = entity_ui_controller('simplemeta')
    ->entityFormSubmitBuildEntity($form, $form_state);
  $entity
    ->save();
  $form_state['redirect'] = 'admin/content/simplemeta';
  drupal_set_message(t('SimpleMeta has been saved.'));
}