You are here

function _brightcove_upload_form_validate in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.module \_brightcove_upload_form_validate()

Validate callback for _brightcove_upload_form().

1 string reference to '_brightcove_upload_form_validate'
brightcove_video_form in ./brightcove.video.inc
Brightcove video entity form.

File

./brightcove.module, line 2891
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function _brightcove_upload_form_validate($form, &$form_state) {
  if (!in_array($form_state['values']['client'], array_keys(_brightcove_load_my_clients()))) {
    form_error($form['client'], t('Invalid client selected.'));
  }
}