You are here

function language_access_permission in Language access 7

Implementation of hook_permission().

File

./language_access.module, line 36

Code

function language_access_permission() {
  $languages = language_list('enabled');
  $perms = array();
  foreach ($languages[1] as $language) {
    $perms['access language ' . $language->language] = array(
      'title' => t('Access language ' . $language->language),
    );
    $perms['create language ' . $language->language] = array(
      'title' => t('Create language ' . $language->language),
    );
  }
  return $perms;
}