You are here

function users_export_permission in Users Export 7.2

Implements hook_permission().

File

./users_export.module, line 45
Base module file for users_export.

Code

function users_export_permission() {
  $perms = array();
  if (module_exists('loft_data_grids')) {
    foreach (loft_data_grids_export_info() as $info) {
      $perms['users_export:export as ' . $info['id']] = array(
        'title' => t('Export as @name', array(
          '@name' => $info['name'],
        )),
        'description' => check_plain($info['description']),
      );
    }
  }
  return $perms;
}