Skip to content

Instantly share code, notes, and snippets.

@kitikonti
Last active August 29, 2015 13:57
Show Gist options
  • Save kitikonti/9793371 to your computer and use it in GitHub Desktop.
Save kitikonti/9793371 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* This module controls the access to view profile nodes and its email address
* field.
*/
function mh_profile_access_form_profile_node_form_alter(&$form, &$form_state, $form_id) {
$form['field_profile_e_mail']['und'][0]['email']['#description'] = t('new desc.');
$form['field_profile_e_mail']['und'][0]['email']['#disabled'] = TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment