You are here

function brightcove_client_set_default_access in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.client.inc \brightcove_client_set_default_access()

Access callback.

Parameters

Entity $client:

1 string reference to 'brightcove_client_set_default_access'
BrightcoveClientEntityUIController::hook_menu in ./brightcove.client.inc
@inheritdoc

File

./brightcove.client.inc, line 385
Client related code.

Code

function brightcove_client_set_default_access($client) {
  $value = _brightcove_client_default_link_id($client->bcid);
  if (drupal_valid_token($_GET['token'], $value) && brightcove_client_access('use', $client)) {
    return TRUE;
  }
  return FALSE;
}