You are here

function brightcove_write_api_access in Brightcove Video Connect 7.2

Same name and namespace in other branches
  1. 6.2 brightcove.module \brightcove_write_api_access()
  2. 6 brightcove.module \brightcove_write_api_access()
  3. 7.7 brightcove.module \brightcove_write_api_access()
  4. 7.3 brightcove.module \brightcove_write_api_access()
  5. 7.4 brightcove.module \brightcove_write_api_access()
  6. 7.5 brightcove.module \brightcove_write_api_access()
  7. 7.6 brightcove.module \brightcove_write_api_access()

Check a set of API keys to determine write access to Brightcove Studio. Only customers with Professional and higher accounts have write access.

Return value

bool TRUE for write access allowed. FALSE for write access forbidden.

1 call to brightcove_write_api_access()
brightcove_field_field_instance_settings_form in brightcove_field/brightcove_field.module
Implements hook_field_settings_form().

File

./brightcove.module, line 190
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_write_api_access() {
  return (bool) variable_get('brightcove_write_api_key', FALSE);
}