You are here

function media_update_7008 in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.install \media_update_7008()
  2. 7.2 media.install \media_update_7008()
  3. 7.3 media.install \media_update_7008()

Give all users view media perm by default

File

./media.install, line 425
Install, update and uninstall functions for the Media module.

Code

function media_update_7008() {
  $roles = user_roles();
  foreach ($roles as $rid => $role) {
    user_role_grant_permissions($rid, array(
      'view media',
    ));
  }
}