function boxes_add_form_submit in Boxes 6
Same name and namespace in other branches
- 7 boxes.admin.inc \boxes_add_form_submit()
Submit handler for box_add_form.
File
- ./
boxes.admin.inc, line 37
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/build/block';
}