You are here

function views_megarow_menu in Views Megarow 7

Implement hook_menu().

File

./views_megarow.module, line 9

Code

function views_megarow_menu() {
  $items['views_megarow/refresh/%/%/%'] = array(
    'page callback' => 'views_megarow_get_row',
    'page arguments' => array(
      2,
      3,
      4,
    ),
    'access callback' => 'views_megarow_access',
    'access arguments' => array(
      2,
      3,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['display_megarow/%/%'] = array(
    'page callback' => 'views_megarow_generic_render',
    'page arguments' => array(
      1,
      2,
    ),
    'delivery callback' => 'ajax_deliver',
    'access callback' => TRUE,
    'theme callback' => 'views_megarow_get_page_theme',
  );
  $items['admin/config/user-interface/views_megarow'] = array(
    'title' => 'Views Megarow configuration',
    'description' => t('Options for Views Megarow settings'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'views_megarow_admin_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'views_megarow.admin.inc',
  );
  return $items;
}