You are here

function block_box_form_submit in Drupal 5

File

modules/block/block.module, line 512
Controls the boxes that are displayed around the main content.

Code

function block_box_form_submit($form_id, $form_values) {
  if (!form_get_errors()) {
    if (block_box_save($form_values)) {
      drupal_set_message(t('The block has been created.'));
      return 'admin/build/block';
    }
  }
}