function panopoly_wysiwyg_update_7104 in Panopoly WYSIWYG 7
Make sure that users can insert into the WYSIWYG.
File
- ./
panopoly_wysiwyg.install, line 67 - Install hooks for Panopoly WYSIWYG.
Code
function panopoly_wysiwyg_update_7104() {
// This is duplicated from panopoly_widgets_update_7016() where this code
// was originally place erroneously. We decided not to remove it for
// consistency (so sites that upgraded later would have the same settings
// as those we graded earlier) which is why this exists in both places.
$roles = user_roles(TRUE, 'access media browser');
foreach ($roles as $rid => $role) {
user_role_grant_permissions($rid, array(
'use media wysiwyg',
));
}
}