Commit 01e7cc15 authored by KarenS's avatar KarenS
Browse files

Fix fatal error looking for schema files which now live in module.install.

parent 0640b76d
......@@ -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']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment