function oauth2_server_scope_exists in OAuth2 Server 7
Check whether a given scope exists.
Parameters
$name: The name of the scope.
$element: The name form element array.
$form_state: Form state.
Return value
TRUE if the given scope exists. FALSE otherwise.
1 string reference to 'oauth2_server_scope_exists'
- oauth2_server_scope_form in includes/
oauth2_server.scope_admin.inc - Generates the scope editing form.
File
- includes/
oauth2_server.scope_admin.inc, line 283 - Admin UI for scopes.
Code
function oauth2_server_scope_exists($name, $element, $form_state) {
$server = $form_state['server'];
return oauth2_server_scope_load($server->name, $name);
}