You are here

function filefield_source_reference_menu in FileField Sources 7

Same name and namespace in other branches
  1. 6 sources/reference.inc \filefield_source_reference_menu()

Implements hook_menu().

File

sources/reference.inc, line 34
A FileField extension to allow referencing of existing files.

Code

function filefield_source_reference_menu() {
  $items = array();
  $items['file/reference/%/%/%'] = array(
    'page callback' => 'filefield_source_reference_autocomplete',
    'page arguments' => array(
      2,
      3,
      4,
    ),
    'access callback' => '_filefield_sources_field_access',
    'access arguments' => array(
      2,
      3,
      4,
    ),
    'file' => 'sources/reference.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}