You are here

function loft_data_grids_permission in Loft Data Grids 7.2

Implements hook_permission().

Related topics

File

./loft_data_grids.module, line 21
Base module file for loft_data_grids

Code

function loft_data_grids_permission() {
  $perms = array();
  foreach (loft_data_grids_export_info() as $data) {
    $perms['loft_data_grids:' . $data['id']] = array(
      'title' => t('Visible in UI: @id', array(
        '@id' => $data['name'],
      )),
      'description' => check_plain($data['description']),
    );
  }
  return $perms;
}