You are here

function farm_area_generate_menu in farmOS 7

Implements hook_menu().

File

modules/farm/farm_area/farm_area_generate/farm_area_generate.module, line 39
Farm area generate module.

Code

function farm_area_generate_menu() {

  // Area generator form.
  $items['farm/areas/generate'] = array(
    'title' => 'Bed generator',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'farm_area_generate_form',
    ),
    'access arguments' => array(
      'use farm area generator',
    ),
    'type' => MENU_LOCAL_TASK,
  );

  // Area generator callback.
  $items['farm/areas/generate/callback'] = array(
    'page callback' => 'farm_area_generate_callback',
    'access arguments' => array(
      'use farm area generator',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}