You are here

function file_aliases_menu in File Aliases 5

Same name and namespace in other branches
  1. 6 file_aliases.module \file_aliases_menu()
  2. 7 file_aliases.module \file_aliases_menu()

Implementation of hook_menu().

File

./file_aliases.module, line 6

Code

function file_aliases_menu($may_cache) {
  if (!$may_cache) {
    $items[] = array(
      'path' => 'filefield_paths/alias/' . arg(2),
      'callback' => 'file_aliases_load_fid',
      'callback arguments' => array(
        arg(2),
      ),
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}