Doing original post is very old, i re-post code on wich i wish to get your help.
I'm trying to add a autocomplete filter (in substitution of an exposed filter) and i'm trying the code below, but done to the fact i'm very newbye about modules i'm confused by variables.
I'm in a view-page, not in a "node" page, so i wish to understand this:
1) $items['NODE_NAME/autocomplete'] // This is the path of the actual view-node or the name of original node?
What is the difference between:
$items['NODE_NAME/autocomplete'] & 'page callback' => 'NODE_NAME_autocomplete'
2) $matches[$NODE_NAME->title] = check_plain($NODE_NAME->title); // This is the same as above or the "node" table?
With my change at the moment i see the autocomplete field, query seems to be right (tested also with Query Browser ="select title from node where type = "gallery") but nothing result appear.
Also, if I go in the view edit page and save the view, i see only a blank page.
Original code:
<?php
function MODULE_NAME_menu(){
//Initialize the $items array.
$items = array();
//Add menu for the node autocomplete textfield's #autocomplete_path.
$items['NODE_NAME/autocomplete'] = array(
//Required. The untranslated title of the menu item.
'title' => t('Node Title'),