You are here

function farm_report_menu in farmOS 7

Implements hook_menu().

File

modules/farm/farm_report/farm_report.module, line 44
Farm report module.

Code

function farm_report_menu() {
  $items = array();
  $items['farm/report'] = array(
    'title' => 'Reports',
    'page callback' => 'farm_report_view',
    'access arguments' => array(
      'view farm reports',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['farm/report/info'] = array(
    'title' => 'Info',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -100,
  );
  return $items;
}