Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fc81470f
Commit
fc81470f
authored
Oct 29, 2009
by
webchick
Browse files
#617532
by matt2000: Fixed field_ui() menu paths with underscores in content type names.
parent
374fbf71
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/field_ui/field_ui.module
View file @
fc81470f
...
...
@@ -135,6 +135,7 @@ function field_ui_menu() {
* Menu loader; Load a field instance based on its name.
*/
function
field_ui_menu_load
(
$field_name
,
$obj_type
,
$bundle_name
)
{
$bundle_name
=
strtr
(
$bundle_name
,
array
(
'-'
=>
'_'
));
if
(
$instance
=
field_info_instance
(
$obj_type
,
$field_name
,
$bundle_name
))
{
return
$instance
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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