function regions_perm in Regions 6
Implementation of hook_perm().
File
- ./
regions.module, line 20 - Add regions to the screen that are cross-theme compliant
Code
function regions_perm() {
$regions = _regions_list();
// Generate a list of regions and permissions.
foreach (array_keys($regions) as $region_name) {
$perms[] = 'view ' . $region_name . ' region';
}
return $perms;
}