Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

content_copy_groups

Definition

content_copy_groups($type_name = '')
contributions/cck/modules/content_copy/content_copy.module, line 464

Description

Get all the groups for a content type.

Code

<?php
function content_copy_groups($type_name = '') {
  $groups = array();
  if (!$type_name || !module_exists('fieldgroup')) {
    return $groups;
  }
  $data = fieldgroup_groups($type_name);
  foreach ($data as $group_name => $group) {
    $groups[$group_name] = $group['label'] .' ('. $group['group_name'] .')';
  }
  return $groups;
}
?>