function nodewords_ui_user in Nodewords: D6 Meta Tags 6.2
Same name and namespace in other branches
- 6.3 nodewords_ui/nodewords_ui.module \nodewords_ui_user()
Implements hook_user().
File
- nodewords_ui/
nodewords_ui.module, line 194 - Implement the user interface visible to authenticated users.
Code
function nodewords_ui_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'form' && $category == 'account') {
if (user_access('administer meta tags') || user_access('edit meta tags')) {
$options = array(
'type' => NODEWORDS_TYPE_USER,
'id' => $account->uid,
);
$tags = isset($account->nodewords['metatags']) ? $account->nodewords['metatags'] : array();
$form['nodewords'] = nodewords_tags_edit_fields($options, $tags, array(
'fieldset' => TRUE,
));
return $form;
}
}
}