Skip to content
Snippets Groups Projects
Commit cfd79412 authored by Brian Canini's avatar Brian Canini
Browse files

Custom module

- adds new description text for people username and email fields
parent a78c4219
No related branches found
No related tags found
No related merge requests found
name: Custom People Descriptions
description: 'Alters descriptions for username and email on People Edit form'
core: 8.x
type: module
package: ASC Tech
dependencies:
- drupal:user
<?php
function custom_people_desc_form_alter(&$form, &$form_state, $form_id) {
if(in_array($form_id,['user_form','user_edit_form'])) {
$form['account']['mail']['#description'] = t('Add email address of user being added.');
$form['account']['name']['#description'] = t('Note: Put the full name.#@osu.edu of the person being added. If they are not an Ohio State person then insert their email address.');
}
if(in_array($form_id,['user-register-form','user_register_form'])) {
$form['account']['mail']['#description'] = t('Add email address of user being added.');
$form['account']['name']['#description'] = t('Note: Put the full name.#@osu.edu of the person being added. If they are not an Ohio State person then insert their email address.');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment