function nodewords_extra_dc_contributor_form in Nodewords: D6 Meta Tags 6.2
Same name and namespace in other branches
- 6 nodewords_extra/nodewords_extra.module \nodewords_extra_dc_contributor_form()
Set the form fields used to implement the options for the meta tag.
File
- nodewords_extra/
includes/ nodewords_extra.nodewords.tags.inc, line 11 - Nodewords support file.
Code
function nodewords_extra_dc_contributor_form(&$form, $content, $options) {
$form['dc.contributor'] = array(
'#tree' => TRUE,
);
$form['dc.contributor']['value'] = array(
'#type' => 'textfield',
'#title' => t('Dublin Core contributor'),
'#description' => t('Enter the name of an entity responsible for making contributions to the resource. Examples of a contributor include a person, an organization, or a service.') . $options['description'],
'#default_value' => empty($content['value']) ? !empty($options['default']['dc.contributor']['value']) ? $options['default']['dc.contributor']['value'] : '' : $content['value'],
'#maxlength' => variable_get('nodewords_max_size', 350),
);
}