You are here

function charts_permission in Charts 7.2

Implements hook_permission().

File

./charts.module, line 158
Provides elements for rendering charts and Views integration.

Code

function charts_permission() {
  return array(
    'administer charts' => array(
      'title' => t('Administer Charts'),
      'description' => t('Visit the <a href="!url">Default chart configuration</a> (used for Charts administration)', array(
        '!url' => url('admin/config/content/charts'),
      )),
    ),
    'access example charts' => array(
      'title' => t('Access example charts'),
      'description' => t('Visit the <a href="!url">Charts examples</a> (used for Charts testing and demo)', array(
        '!url' => url('charts/examples'),
      )),
    ),
  );
}