function xmlsitemap_node_field_extra_fields in XML sitemap 7.2
Implements hook_field_extra_fields().
File
- xmlsitemap_node/
xmlsitemap_node.module, line 148 - Default file for XML sitemap node.
Code
function xmlsitemap_node_field_extra_fields() {
$extras = array();
foreach (node_type_get_names() as $type => $name) {
$extras['node'][$type]['form']['xmlsitemap'] = array(
'label' => t('XML sitemap'),
'description' => t('XML sitemap module element'),
'weight' => 30,
);
}
return $extras;
}