Same name and namespace in other branches
  1. 4.6.x modules/profile.module \_profile_form_explanation()
  2. 4.7.x modules/profile.module \_profile_form_explanation()
  3. 5.x modules/profile/profile.module \_profile_form_explanation()
  4. 6.x modules/profile/profile.module \_profile_form_explanation()

File

modules/profile/profile.module, line 361
Support for configurable user profiles.

Code

function _profile_form_explanation($field) {
  $output = filter_xss_admin($field->explanation);
  if ($field->type == 'list') {
    $output .= ' ' . t('Put each item on a separate line or separate them by commas. No HTML allowed.');
  }
  if ($field->visibility == PROFILE_PRIVATE) {
    $output .= ' ' . t('The content of this field is kept private and will not be shown publicly.');
  }
  return $output;
}