Hi,

I'm using CCK 6.x-3.x-dev with multigroups enabled. I'm developing a module which will be used to generate PDF-Files out of CCK-Content including multigroups. Therefore I used node_load to get the nodeobject with all fields defined in the node, but there is no information to which group a specific field belongs. Is there a function defined somewhere in the content-module to retrieve this information in any way?

cheers

Comments

markus_petrux’s picture

Category: feature » support
Status: Active » Fixed

IIRC: fieldgroup_groups($type_name) is it.

// Information about all field groups in a content type.
$groups = fieldgroup_groups($type_name);
// One field group.
$group = $groups[$group_name];
// Names of the fields in the field group.
$field_names = array_keys($group['fields']);


// Information about a field on a particular content type.
$field = content_fields($field_name, $type_name);

// Database information about a field.
$db_info = content_database_info($field);

Please, use var_dump() or equivalent to review the contents of these arrays. You may also want to look at the source of the fieldgroup or multigroup modules.

xurubo93’s picture

Thx! This is the point

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.