contact_user_page

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/contact/contact.module, строка 301

Версии
5
contact_user_page()
6
contact_user_page($account)

Коллбэк меню. Страница персональных контактов.

Код

<?php
function contact_user_page() {
  global $user;

  if ($account = user_load(array('uid' => arg(1)))) {
    if (!valid_email_address($user->mail)) {
      $output = t('You need to provide a valid e-mail address to contact other users. Please update your <a href="@url">user information</a> and try again.', array('@url' => url("user/$user->uid/edit")));
    }
    else if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3))) {
      $output = t('You cannot contact more than %number users per hour. Please try again later.', array('%number' => variable_get('contact_hourly_threshold', 3)));
    }
    else {
      drupal_set_title(check_plain($account->name));
      $output = drupal_get_form('contact_mail_user', $account);
    }

    return $output;
  }
  else {
    drupal_not_found();
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему