protected function getAllPermissions() {
    $permissions = array();
    foreach (module_invoke_all('permission') as $name => $permission) {
      $permissions[$name] = $permission['title'];
    }
    return $permissions;
  }
protected function getAllPermissions() {
    $permissions = array();
    foreach (module_invoke_all('permission') as $name => $permission) {
      $permissions[$name] = $permission['title'];
    }
    return $permissions;
  }
protected function getAllPermissions ( ) { $ permissions = array ( ) ; foreach ( module_invoke_all ( 'permission' ) as $ name => $ permission ) { $ permissions [ $ name ] = $ permission [ 'title' ] ; } return $ permissions ; }
Helper function to get all permissions.

@return array
Array keyed by permission name, with the human-readable title as the
value.
Helper function to get all permissions .