It's seems from the CCK code, that when you want to handle multiple values on your own, content.node_form.inc defaults to displaying your element only a single time. It would be great if there was a callback implemented (like _default_value) for modules that want to use CONTENT_HANDLE_MODULE.

Comments

yched’s picture

Status: Active » Postponed (maintainer needs more info)

'multiple values' => CONTENT_HANDLE_MODULE in hook_widget_info() is intended to be used by widgets that are inherently multi-valued : a select list, a list of checkboxes, a gmap where you click to select locations... One instance of the widget is enough to select multiple values.

Could you expand on your use case and why you need to opt-out of the default management of multiple values ?

Ozeuss’s picture

For the module I'm maintaining (http://drupal.org/project/office_hours) the drag and drop is unnecessary- it makes more sense using 7 fixed fields. I guess there might be other use cases.

Ozeuss’s picture

Should i offer a patch for this? will it be implemented?

Ozeuss’s picture

Status: Postponed (maintainer needs more info) » Active
markus_petrux’s picture

Status: Active » Closed (won't fix)

I know this is an old issue, but another one made me find it. See #626240: CCK Pager and CONTENT_HANDLE_MODULE.

Well, I think CCK does not need to be patched. Your widget could tell CCK multiple values are managed by the widget itself, then your widget expands to 7 form elements itself.