Upgrading a very simple node-type module from Drupal 5.x to 6.x
Having an issue with the taxonomy_autocomplete not working for the title of the node.
The "logo" node-type title = any website url, and has a related taxonomy vocab, titled "Site".
This module makes the node title field autocomplete with terms from this "Site" vocabulary.
http://i.imgur.com/NWkOr6u.jpg
Currently getting the following error:
An error occurred.
http://*sitename*/logo/autocomplete/3
Fatal error: Call to undefined function taxonomy_autocomplete() in /sites/all/modules/logos/logo.module on line 194
Line 194:
return taxonomy_autocomplete($vid, $text);
Complete function:
function _logo_filter_site_list($text) {
return strtolower(str_replace(array('http://', 'www.'), '', $text));
}
function logo_autocomplete($vid, $text) {
$text = _logo_filter_site_list($text);
return taxonomy_autocomplete($vid, $text);
}
Relevant parts of the module code:
function logo_node_info() {
return array(
'logo' => array(
'name' => t('Logo'),
'module' => 'logo',
'description' => t('Logo for a site.'),
'has_title' => TRUE,
'title_label' => t('Site'),
'body_label' => t('Description')
)
);
}
/**
* Implementation of hook_menu().