function blockgroup_add_form_submit in Block Group 7
Same name and namespace in other branches
- 7.2 blockgroup.admin.inc \blockgroup_add_form_submit()
Form submission handler for blockgrop_add_form().
Construct new block group.
See also
blockgrop_add_form()
blockgrop_add_form_validate()
File
- ./
blockgroup.admin.inc, line 43 - Administrative interface for block group module.
Code
function blockgroup_add_form_submit($form, &$form_state) {
$blockgroup = (object) array(
'title' => $form_state['values']['title'],
'delta' => $form_state['values']['delta'],
);
blockgroup_add($blockgroup);
// Call through to the block administration handler in order to save all the
// settings.
block_admin_configure_submit($form, $form_state);
}