block_admin_configure_validate

Definition

block_admin_configure_validate($form_id, $form_values)
modules/block/block.module, line 484

Code

<?php
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.'));
    }
  }
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.