You are here

function references_dialog_menu in References dialog 7

Implements hook_menu().

File

./references_dialog.module, line 11
This the main module file.

Code

function references_dialog_menu() {

  // This redirect callback is used when adding and editing content in
  // the overlay. When content is created or edited, we are directed here,
  // so we can act properly on entities.
  $entity_id = 2;
  $entity_type = 3;
  $items['references-dialog/redirect/%/%'] = array(
    'page callback' => 'references_dialog_redirect_page',
    'page arguments' => array(
      $entity_id,
      $entity_type,
    ),
    'access callback' => 'references_dialog_redirect_access',
    'access arguments' => array(
      $entity_id,
      $entity_type,
    ),
  );
  return $items;
}