diff --git a/web/modules/custom/custom_people_desc/custom_people_desc.info.yml b/web/modules/custom/custom_people_desc/custom_people_desc.info.yml new file mode 100644 index 0000000000000000000000000000000000000000..aabfcd3d4f534a407d4f58ec7b0bb38ccfb9333b --- /dev/null +++ b/web/modules/custom/custom_people_desc/custom_people_desc.info.yml @@ -0,0 +1,7 @@ +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 diff --git a/web/modules/custom/custom_people_desc/custom_people_desc.module b/web/modules/custom/custom_people_desc/custom_people_desc.module new file mode 100644 index 0000000000000000000000000000000000000000..6dddc69adce495cb5c2d6cbf7dbd553792464091 --- /dev/null +++ b/web/modules/custom/custom_people_desc/custom_people_desc.module @@ -0,0 +1,11 @@ +<?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.'); + } +}