function certificate_content_extra_fields in Certificate 6
Same name and namespace in other branches
- 6.2 certificate.module \certificate_content_extra_fields()
Implementation of hook_content_extra_fields(). Allow the certificate download link to be sorted in the node edit forms.
File
- ./
certificate.module, line 585 - Certificate module.
Code
function certificate_content_extra_fields($type_name) {
$node->type = $type_name;
if (certificate_node_is_certifiable($node)) {
$extras['certificate'] = array(
'label' => t('Certificate'),
'description' => t('Certificate link.'),
'weight' => 10,
);
}
if ($type_name == 'certificate') {
$extras['certificate_tokens'] = array(
'label' => t('Certificate tokens'),
'description' => t('Tokens to insert into the certificate.'),
);
}
return $extras;
}