function _profile_form_explanation

1 call to _profile_form_explanation()
profile_form_alter in modules/profile/profile.module
Implements hook_form_alter().

File

modules/profile/profile.module, line 361

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.