function brightcove_player_form_validate_field in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.4 brightcove.admin.inc \brightcove_player_form_validate_field()
- 7.5 brightcove.admin.inc \brightcove_player_form_validate_field()
1 string reference to 'brightcove_player_form_validate_field'
- brightcove_player_ui::edit_form in plugins/
export_ui/ brightcove_player_ui.class.php - Edit for for Brightcove Player preset.
File
- ./
brightcove.admin.inc, line 445 - Admin settings for Brightcove module.
Code
function brightcove_player_form_validate_field($element, &$form_state) {
if (!preg_match('!^[a-z0-9_]+$!', $element['#value'])) {
form_error($element, t('The machine-readable name must contain only lowercase letters, numbers, and underscores.'));
}
}