You are here

function views_slideshow_ddblock_menu in Views Slideshow: Dynamic Display Block 6.2

Same name and namespace in other branches
  1. 7.2 views_slideshow_ddblock.module \views_slideshow_ddblock_menu()

Implement hook_menu().

File

./views_slideshow_ddblock.module, line 20
Views Slideshow: ddblock adds ddblock functionality to Views Slideshows.

Code

function views_slideshow_ddblock_menu() {
  $items = array();
  $items['views_slideshow_ddblock_mapping/js/%'] = array(
    'page callback' => 'views_slideshow_ddblock_mapping_js',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type ' => MENU_CALLBACK,
  );

  // Ahah update available template sizes of themes.
  // This block defines the path to which the AHAH call points.
  // The path relays the call to a specific AHAH callback function.
  $items['views_slideshow_ddblock/js'] = array(
    'page callback' => 'views_slideshow_ddblock_select_template_ahah',
    // the AHAH callback function
    'access callback' => TRUE,
    'file' => 'views_slideshow_ddblock.views_slideshow.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}