function social_comment_update_8002 in Open Social 8.7
Same name and namespace in other branches
- 8.9 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 8.3 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 8.4 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 8.5 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 8.6 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 8.8 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 10.3.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 10.0.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 10.1.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
- 10.2.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
Enable 'administer comments' permission for sitemanagers and contentmanagers.
File
- modules/
social_features/ social_comment/ social_comment.install, line 96 - Install, update and uninstall functions for the social_comment module.
Code
function social_comment_update_8002() {
// These permissions were added to default installs in PR 959 but an update
// hook was not added at that point so this must be rectified now.
user_role_grant_permissions('contentmanager', [
'administer comments',
]);
user_role_grant_permissions('sitemanager', [
'administer comments',
]);
}