Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
85161f23
Commit
85161f23
authored
Nov 13, 2009
by
Dries Buytaert
Browse files
- Patch
#631066
by yhed: taxonomy_autocomplete() doesn't need to access .
parent
91bd3ca8
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/taxonomy/taxonomy.module
View file @
85161f23
...
...
@@ -1216,8 +1216,7 @@ function taxonomy_field_widget(&$form, &$form_state, $field, $instance, $langcod
$element
+=
array
(
'#type'
=>
'textfield'
,
'#default_value'
=>
taxonomy_implode_tags
(
$tags
),
// @todo Path should include the object type as well.
'#autocomplete_path'
=>
'taxonomy/autocomplete/'
.
$field
[
'field_name'
]
.
'/'
.
$instance
[
'bundle'
],
'#autocomplete_path'
=>
$instance
[
'widget'
][
'settings'
][
'autocomplete_path'
]
.
'/'
.
$field
[
'field_name'
],
'#size'
=>
$instance
[
'widget'
][
'settings'
][
'size'
],
'#element_validate'
=>
array
(
'taxonomy_autocomplete_validate'
),
);
...
...
modules/taxonomy/taxonomy.pages.inc
View file @
85161f23
...
...
@@ -77,8 +77,7 @@ function taxonomy_term_feed($term) {
/**
* Helper function for autocompletion
*/
function
taxonomy_autocomplete
(
$field_name
,
$bundle
,
$tags_typed
=
''
)
{
$instance
=
field_info_instance
(
$field_name
,
$bundle
);
function
taxonomy_autocomplete
(
$field_name
,
$tags_typed
=
''
)
{
$field
=
field_info_field
(
$field_name
);
// The user enters a comma-separated list of tags. We only autocomplete the last tag.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment