function social_graphql_install in Open Social 10.1.x
Same name and namespace in other branches
- 10.3.x modules/custom/social_graphql/social_graphql.install \social_graphql_install()
- 10.2.x modules/custom/social_graphql/social_graphql.install \social_graphql_install()
Implements hook_install().
File
- modules/
custom/ social_graphql/ social_graphql.install, line 11 - Install, update and uninstall functions for the social_graphql module.
Code
function social_graphql_install() {
// Ensure users can use GraphQL powered applications with our default server.
// We rely on normal access rules for authorization.
user_role_grant_permissions('anonymous', [
'execute open_social_graphql arbitrary graphql requests',
]);
user_role_grant_permissions('authenticated', [
'execute open_social_graphql arbitrary graphql requests',
]);
}