Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
content_copy_groups($type_name = '')
contributions/cck/modules/content_copy/content_copy.module, line 464
Get all the groups for a content type.
<?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;
}
?>