function oauth_common_default_oauth_common_context in OAuth 1.0 6.3
Same name and namespace in other branches
- 7.4 oauth_common.module \oauth_common_default_oauth_common_context()
- 7.3 oauth_common.module \oauth_common_default_oauth_common_context()
Implementation of hook_oauth_default_contexts().
File
- ./
oauth_common.module, line 194
Code
function oauth_common_default_oauth_common_context() {
$contexts = array();
$context = new stdClass();
$context->disabled = FALSE;
/* Edit this to true to make a default context disabled initially */
$context->name = 'default';
$context->title = 'Default context';
$context->authorization_options = array();
$context->authorization_levels = array(
'*' => array(
'title' => 'Full access',
'description' => 'This will give @appname the same permissions that you normally have and will allow it to access the full range of services that @sitename provides.',
),
'read' => array(
'title' => 'Read access',
'description' => 'This will allow @appname to fetch content that you have access to on @sitename.',
),
'update' => array(
'title' => 'Update access',
'description' => 'This will allow @appname to update content that you have permissions to edit.',
),
'create' => array(
'title' => 'Create access',
'description' => 'This will allow @appname to create new content on @sitename.',
),
'delete' => array(
'title' => 'Delete access',
'description' => 'This will allow @appname to delete content from @sitename.',
),
);
$contexts[$context->name] = $context;
return $contexts;
}