You are here

taxonomy_menu_dummy_paths.module in Taxonomy menu 7.2

Helper module for the taxonomy menu custom paths tests.

File

tests/taxonomy_menu_dummy_paths.module
View source
<?php

/**
 * @file
 * Helper module for the taxonomy menu custom paths tests.
 */

/**
 * Implements hook_menu().
 *
 * Registers paths that are used in the tests.
 */
function taxonomy_menu_dummy_paths_menu() {
  $items['custom_base_path/%'] = array(
    'title' => 'Dummy taxonomy menu path',
    'page callback' => 'taxonomy_menu_dummy_paths_callback',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'access content',
    ),
  );
  $items['custom_base_path/%/%'] = array(
    'title' => 'Dummy taxonomy menu path with depth',
    'page callback' => 'taxonomy_menu_dummy_paths_callback',
    'page arguments' => array(
      1,
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
  );
  return $items;
}

/**
 * Menu callback.
 *
 * @param $user_id
 *   The user id of the user whose profile page will be loaded.
 */
function taxonomy_menu_dummy_paths_callback($tid = 1, $depth = 2) {

  // We don't want to do anything in particular here.
  return;
}

Functions