function brightcove_admin_settings_validate in Brightcove Video Connect 7.2
Same name and namespace in other branches
- 7.7 brightcove.admin.inc \brightcove_admin_settings_validate()
- 7.3 brightcove.admin.inc \brightcove_admin_settings_validate()
- 7.4 brightcove.admin.inc \brightcove_admin_settings_validate()
- 7.5 brightcove.admin.inc \brightcove_admin_settings_validate()
- 7.6 brightcove.admin.inc \brightcove_admin_settings_validate()
1 string reference to 'brightcove_admin_settings_validate'
- brightcove_admin_settings in ./
brightcove.admin.inc - Form builder.
File
- ./
brightcove.admin.inc, line 237 - Admin settings for Brightcove module.
Code
function brightcove_admin_settings_validate($form, &$form_state) {
list($can_read, $can_write) = brightcove_verify_tokens($form_state['values']['brightcove_read_api_key'], $form_state['values']['brightcove_write_api_key']);
if (!$can_read) {
form_set_error('brightcove_read_api_key', t('Invalid read key'));
}
if ($form_state['values']['brightcove_write_api_key'] && !$can_write) {
form_set_error('brightcove_write_api_key', t('Invalid write key'));
}
}