You are here

function tabsexample_menu in Tabs (jQuery UI tabs) 6

Implementation of hook_menu().

File

docs/tabsexample.module, line 6

Code

function tabsexample_menu() {
  $items = array();
  $items['tabsexample'] = array(
    'title' => 'Tabs example, basic',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tabsexample_form',
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['tabsexample-ajax'] = array(
    'title' => 'Tabs example, AJAX',
    'page callback' => 'tabsexample_ajax_tabset',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['tabsexample/ajax'] = array(
    'title' => 'Tabs example ajax',
    'page callback' => 'tabsexample_ajax',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}