Last active
February 2, 2016 07:20
-
-
Save HelenaEksler/b59f82d4baf1c73fa42c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tasks['IMJ_setup_permissions'] = array( | |
'display_name' => st('Set Blocks'), | |
'display' => FALSE, | |
); | |
------------------------------------------------ | |
/** | |
* Task callback; Setup content permissions. | |
* | |
* We do this here, late enough to make sure all content types were | |
* created. | |
*/ | |
function IMJ_setup_permissions() { | |
$permissions = array( | |
'access content', | |
); | |
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, $permissions); | |
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, $permissions); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment