function boxes_add_form_submit in Boxes 7
Same name and namespace in other branches
- 6 boxes.admin.inc \boxes_add_form_submit()
Submit handler for box_add_form.
File
- ./
boxes.admin.inc, line 38
Code
function boxes_add_form_submit($form, &$form_state) {
$box = boxes_factory($form_state['values']['plugin_key'], $form_state['values']);
$box
->save();
drupal_set_message(t('%name has been created.', array(
'%name' => $box->description,
)));
$form_state['redirect'] = 'admin/structure/block';
}