You are here

function block_admin_configure_validate in Drupal 4

Same name and namespace in other branches
  1. 5 modules/block/block.module \block_admin_configure_validate()
  2. 6 modules/block/block.admin.inc \block_admin_configure_validate()
  3. 7 modules/block/block.admin.inc \block_admin_configure_validate()

File

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

Code

function block_admin_configure_validate($form_id, $form_values) {
  if ($form_values['module'] == 'block') {
    if (empty($form_values['info']) || db_num_rows(db_query("SELECT bid FROM {boxes} WHERE bid != %d AND info = '%s'", $form_values['delta'], $form_values['info']))) {
      form_set_error('info', t('Please ensure that each block description is unique.'));
    }
  }
}