public function Role7::getModulePerms

8.0.x Role7.php public Role7::getModulePerms($module)
7.x Role7.php public Role7::getModulePerms($module)
master Role7.php public Role7::getModulePerms($module)

Overrides RoleBase::getModulePerms

1 method overrides Role7::getModulePerms()
Role8::getModulePerms in lib/Drush/Role/Role8.php

File

lib/Drush/Role/Role7.php, line 11

Namespace

Drush\Role

Class

Role7

Code

public function getModulePerms($module) {
  $perms = module_invoke($module, 'permission');
  return $perms ? array_keys($perms) : array();
}