You are here

function webform_chart_menu in Webform Chart 7

Same name and namespace in other branches
  1. 7.2 webform_chart.module \webform_chart_menu()

Implements hook_menu().

Adds the charting result page on each Webform node.

File

./webform_chart.module, line 219
webform_chart.module

Code

function webform_chart_menu() {
  $items['node/%webform_menu/chart-results'] = array(
    'title' => 'Results as charts',
    'page callback' => 'webform_chart_page',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'view_webform_charts',
    ),
    'weight' => 7,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}