You are here

function _fieldgroup_field_get_group in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6.3 modules/fieldgroup/fieldgroup.module \_fieldgroup_field_get_group()
  2. 6 modules/fieldgroup/fieldgroup.module \_fieldgroup_field_get_group()
  3. 6.2 modules/fieldgroup/fieldgroup.module \_fieldgroup_field_get_group()
1 call to _fieldgroup_field_get_group()
fieldgroup_form_alter in ./fieldgroup.module

File

./fieldgroup.module, line 282
Create field groups for CCK fields.

Code

function _fieldgroup_field_get_group($content_type, $field_name) {
  return db_result(db_query("SELECT group_name FROM {node_group_fields} WHERE type_name = '%s' AND field_name = '%s'", $content_type, $field_name));
}