You are here

function responsive_favicons_update_7101 in Responsive Favicons 7

Grants "administer responsive favicons" permission to those with "administer themes".

File

./responsive_favicons.install, line 80
Responsive favicons install file.

Code

function responsive_favicons_update_7101() {
  $roles = user_roles(TRUE, 'administer themes');
  foreach ($roles as $rid => $role) {
    user_role_grant_permissions($rid, array(
      'administer responsive favicons',
    ));
  }
}