function token_form_block_admin_configure_alter in Token 7
Implements hook_form_FORM_ID_alter().
1 call to token_form_block_admin_configure_alter()
- token_form_block_add_block_form_alter in ./
token.module - Implements hook_form_FORM_ID_alter().
File
- ./
token.module, line 267 - Enhances the token API in core: adds a browseable UI, missing tokens, etc.
Code
function token_form_block_admin_configure_alter(&$form, $form_state) {
$form['settings']['title']['#description'] .= ' ' . t('This field supports tokens.');
// @todo Figure out why this token validation does not seem to be working here.
$form['settings']['title']['#element_validate'][] = 'token_element_validate';
$form['settings']['title'] += array(
'#token_types' => array(),
);
}