You are here

function nodewords_ui_user in Nodewords: D6 Meta Tags 6.3

Same name and namespace in other branches
  1. 6.2 nodewords_ui/nodewords_ui.module \nodewords_ui_user()

Implements hook_user().

File

nodewords_ui/nodewords_ui.module, line 134
Implement the user interface visible to authenticated users.

Code

function nodewords_ui_user($op, &$edit, &$account, $category = NULL) {
  global $user;
  $bool = nodewords_check_version('2.16') && $op == 'form' && (user_access('administer meta tags') || $user->uid == $account->uid) && $category == 'account';
  if ($bool) {
    $form['nodewords'] = nodewords_tags_edit_fields(array(
      'type' => NODEWORDS_TYPE_USER,
      'id' => $account->uid,
    ), isset($account->nodewords['metatags']) ? $account->nodewords['metatags'] : array(), array(
      'fieldset' => TRUE,
    ));
    return $form;
  }
}