To repeat:
* at admin/content/node-type/merci-reservation/fields add a new field of any type.
* choose unlimited for the Number of Values for this field.
Result:
location of merci_date_field moves from content_type_merci_reservation to content_field_merci_date. field_merci_date no longer shows up on reservation edit form. most sql queries are broken as content_type_merci_reservation is hard coded through out the module.
TODO: audit the code. the table and field names for all the cck fields should be determined programmatically or else adding fields to merci_reservation type should be disabled.
Example code to fix things:
// Determine CCK table and columns the date data is stored in.
$field = content_fields('field_merci_date');
$db_info = content_database_info($field);
$table = $db_info['table'];
$column_start_date = $db_info['columns']['value']['column'];
$column_end_date = $db_info['columns']['value2']['column'];
Comments
Comment #1
darrick commented