You are here

function brightcove_write_api_access in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove.module \brightcove_write_api_access()
  2. 7.7 brightcove.module \brightcove_write_api_access()
  3. 7.2 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

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

1 call to brightcove_write_api_access()
brightcove_cck_field_settings in brightcove_cck/brightcove_cck.module
Implementation of hook_field_settings().

File

./brightcove.module, line 127
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() {
  if (variable_get('brightcove_write_api_key', '')) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}