function block_admin_configure_validate in Drupal 5
Same name and namespace in other branches
- 4 modules/block.module \block_admin_configure_validate()
- 6 modules/block/block.admin.inc \block_admin_configure_validate()
- 7 modules/block/block.admin.inc \block_admin_configure_validate()
File
- modules/
block/ block.module, line 484 - 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.'));
}
}
}