function gallery_assist_content_extra_fields in Gallery Assist 6
Implementation of hook_content_extra_fields().
Lets CCK expose the gallery content weight in the node content (only if CCK is installed).
File
- ./
gallery_assist.module, line 5374 - Drupal content type with gallery functionality.
Code
function gallery_assist_content_extra_fields($type_name) {
// if ($type_name == 'gallery_assist') {
// $extra['gallery_assist'] = array(
// 'label' => t('Gallery Assist Container'),
// 'description' => t('Container with the Gallery Assist items.'),
// 'weight' => 0,
// );
// return $extra;
// }
$extra['u1'] = array(
'label' => t('Uno Container'),
'description' => t('Container with the Gallery Assist items.'),
'weight' => 0,
);
$extra['u2'] = array(
'label' => t('Dos Container'),
'description' => t('Container with the Gallery Assist items.'),
'weight' => 2,
);
$extra['u3'] = array(
'label' => t('Tres Container'),
'description' => t('Container with the Gallery Assist items.'),
'weight' => 2,
);
return $extra;
}