function node_gallery_content_extra_fields in Node Gallery 6.3
Implementation of cck's hook_content_extra_fields()
Allows gallery view to be arranged via content type fields.
Parameters
String $type_name Content type name:
Return value
Array of "extras".
File
- ./
node_gallery.module, line 1306 - Node gallery module file.
Code
function node_gallery_content_extra_fields($type_name) {
$extras = array();
if (in_array($type_name, (array) node_gallery_get_types('gallery'))) {
$extras['gallery'] = array(
'label' => t('Gallery Images View'),
'description' => t('The Node_Gallery view used by this gallery node.'),
'weight' => -3,
);
}
if (in_array($type_name, (array) node_gallery_get_types('image'))) {
$extras['image_navigator'] = array(
'label' => t('Node Gallery Image Navigator'),
'description' => t('The Node Gallery Image Navigator.'),
'weight' => -10,
);
}
return $extras;
}