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
cck
Commits
01e7cc15
Commit
01e7cc15
authored
Jan 05, 2011
by
KarenS
Browse files
Fix fatal error looking for schema files which now live in module.install.
parent
0640b76d
Changes
1
Show whitespace changes
Inline
Side-by-side
cck.module
View file @
01e7cc15
...
...
@@ -70,6 +70,7 @@ function cck_allowed_values_form(&$form, $form_state, $field) {
// Add a field where users can specify some PHP
// code that will return the allowed values list.
module_load_include
(
'install'
,
$field
[
'module'
]);
$function
=
$field
[
'module'
]
.
'_field_schema'
;
$schema
=
$function
(
$field
);
$columns
=
array_keys
(
$schema
[
'columns'
]);
...
...
@@ -113,6 +114,7 @@ function cck_default_value_form(&$form, $form_state, $field) {
// Add a field where users can specify some PHP
// code that will return the default value.
module_load_include
(
'install'
,
$field
[
'module'
]);
$function
=
$field
[
'module'
]
.
'_field_schema'
;
$schema
=
$function
(
$field
);
$columns
=
array_keys
(
$schema
[
'columns'
]);
...
...
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