Skip to content

Instantly share code, notes, and snippets.

@HelenaEksler
Last active February 2, 2016 07:20
Show Gist options
  • Save HelenaEksler/b59f82d4baf1c73fa42c to your computer and use it in GitHub Desktop.
Save HelenaEksler/b59f82d4baf1c73fa42c to your computer and use it in GitHub Desktop.
$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