function nodewords_extra_dc_date_form in Nodewords: D6 Meta Tags 6.2
Same name and namespace in other branches
- 6 nodewords_extra/nodewords_extra.module \nodewords_extra_dc_date_form()
Set the form fields used to implement the options for the meta tag.
File
- nodewords_extra/
includes/ nodewords_extra.nodewords.tags.inc, line 63 - Nodewords support file.
Code
function nodewords_extra_dc_date_form(&$form, $content, $options) {
$form['dc.date'] = array(
'#tree' => TRUE,
);
if (isset($content['value']) && is_array($content['value'])) {
// Support the older date form element value.
$content['value'] = $content['value']['day'] . ' ' . $content['value']['month'] . ' ' . $content['value']['year'];
}
$form['dc.date']['value'] = array(
'#type' => 'textfield',
'#title' => t('Dublin Core date'),
'#description' => t('Enter day, month, and year in this order, separated by a space; a invalid date will not be used. The timezone is UTC.') . $options['description'],
'#default_value' => isset($content['value']) ? $content['value'] : '',
);
}