You are here

function filefield_source_reference_menu in FileField Sources 6

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

Implements hook_menu().

File

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

Code

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