function pet_form_submit in Previewable email templates 7
Form API submit callback for the type form.
File
- includes/
pet.admin.inc, line 133 - Contains pages for creating, editing, and deleting previewable email templates (PETs).
Code
function pet_form_submit(&$form, &$form_state) {
$pet = entity_ui_form_submit_build_entity($form, $form_state);
$pet
->save();
$form_state['redirect'] = 'admin/structure/pets';
}