saurabh's blog

17 Jan

Create the custom autocomplete field

in Drupal Planet

Create the custom autocomplete field using the custom module.
How to create a custom autocomplete form and to get the user names or or anything else?
Here is the example.
/**
*Implementation of hook_menu().
*/

$items['custom_automplete_form'] = array(
'title' => 'Custom autocomplete form',
'page callback' => 'drupal_get_form',
'page arguments' => array('custom_autocomplete_form'),
'access arguments' => array('access autocomplete'),
'type' => MENU_NORMAL_ITEM
);
/**
*Implementation of function custom_autocomplete_form()
*/ Read more »

copyright 2012 10jumps Llc.

copyright 2012 10jumps LLC.