1 block.admin.inc | block_admin_configure_validate($form, &$form_state) |
Form validation handler for block_admin_configure().
Parameters
array $form: An associative array containing the structure of a portion of the form.
array $form_state: A keyed array containing the current state of the form.
See also
block_admin_configure_submit()
File
- core/
modules/ block/ block.admin.inc, line 181 - Admin page callbacks for the Block module.
Code
function block_admin_configure_validate($form, &$form_state) {
$blocks = block_block_info();
foreach ($blocks as $delta => $block) {
if ($delta != $form_state['values']['delta'] && $block['info'] == $form_state['values']['info']) {
form_set_error('info', t('Ensure that each block description is unique.'));
return;
}
}
}