You are here

function webform_chart_permission in Webform Chart 7.2

Same name and namespace in other branches
  1. 7 webform_chart.module \webform_chart_permission()

Implements hook_permission().

Two permissions available:

  • Configure Webform Charts : allow given roles to configure the charting and backend to use on webform settings pages.
  • View Webform Charts : allow given roles to access the chart results page.

File

./webform_chart.module, line 48
webform_chart.module

Code

function webform_chart_permission() {
  return array(
    'configure_webform_charts' => array(
      'title' => t('Configure Webform Charts'),
      'description' => t('Allows users to configure back ends for webform charts.'),
    ),
    'view_webform_charts' => array(
      'title' => t('View Webform Charts'),
      'description' => t('Allows users to visit the chart display result page.'),
    ),
  );
}