You are here

function _brightcove_my_client_select_options in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.module \_brightcove_my_client_select_options()
1 call to _brightcove_my_client_select_options()
brightcove_client_select_element in ./brightcove.client.inc
Returns a form element to select a brightcove client.

File

./brightcove.module, line 2878
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_my_client_select_options($account = NULL) {
  $clients = _brightcove_load_my_clients($account);
  $clients_options = [];
  foreach ($clients as $client) {
    $clients_options[$client->bcid] = $client->label;
  }
  return $clients_options;
}