function nodewords_ui_form_alter in Nodewords: D6 Meta Tags 6.3
Same name and namespace in other branches
- 6.2 nodewords_ui/nodewords_ui.module \nodewords_ui_form_alter()
Implements hook_form_alter().
File
- nodewords_ui/
nodewords_ui.module, line 27 - Implement the user interface visible to authenticated users.
Code
function nodewords_ui_form_alter(&$form, $form_state, $form_id) {
$bool = isset($form['type']) && isset($form['#node']) && $form_id == $form['type']['#value'] . '_node_form';
if ($bool) {
$node = $form['#node'];
$form['nodewords'] = nodewords_tags_edit_fields(_nodewords_ui_get_node_metatags_type($node), !empty($node->nodewords['metatags']) ? $node->nodewords['metatags'] : array(), array(
'fieldset' => TRUE,
'tag options' => array(
'content type' => $form['type']['#value'],
),
));
}
}