You are here

function language_access_perm in Language access 6

Implements hook_perm().

File

./language_access.module, line 36

Code

function language_access_perm() {
  $perms = array();
  $languages = language_list('enabled');
  foreach ($languages[1] as $language) {
    array_push($perms, 'access language ' . $language->language, 'create language ' . $language->language);
  }
  return $perms;
}