<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace">Hi,</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">I've got the below code. After enabling the module, the field is seen disabled in /admin/config/people/accounts/display/full. Furthermore, even if I enable it, it is not on user account page, even though it is visible in dpm() output. This started happening after I changed the field name.</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><font face="courier new, monospace"><?php</font><font face="courier new, monospace"><br></font><font face="courier new, monospace">/**<br></font><font face="courier new, monospace"> * Implements hook_install().<br></font><font face="courier new, monospace"> */<br></font><font face="courier new, monospace">function tckn_kontrol_install() {<br></font><font face="courier new, monospace"> $field = array(<br></font><font face="courier new, monospace"> 'field_name' => 'field_tckn',<br></font><font face="courier new, monospace"> 'type' => 'text',<br></font><font face="courier new, monospace"> 'settings' => array(<br></font><font face="courier new, monospace"> 'max_length' => 11,<br></font><font face="courier new, monospace"> ),<br></font><font face="courier new, monospace"> );<br></font><font face="courier new, monospace"> $instance = array(<br></font><font face="courier new, monospace"> 'field_name' => 'field_tckn',<br></font><font face="courier new, monospace"> 'entity_type' => 'user',<br></font><font face="courier new, monospace"> 'bundle' => 'user',<br></font><font face="courier new, monospace"> 'required' => TRUE,<br></font><font face="courier new, monospace"> 'label' => t('TCKN'),<br></font><font face="courier new, monospace"> 'description' => t('Enter your TCKN.'),<br></font><font face="courier new, monospace"> 'settings' => array(<br></font><font face="courier new, monospace"> 'user_register_form' => TRUE,<br></font><font face="courier new, monospace"> ),<br></font><font face="courier new, monospace"> 'display' => array(<br></font><font face="courier new, monospace"> 'default' => array(<br></font><font face="courier new, monospace"> 'label' => 'above',<br></font><font face="courier new, monospace"> 'type' => 'text_textfield',<br></font><font face="courier new, monospace"> ),<br></font><font face="courier new, monospace"> ),<br></font><font face="courier new, monospace"> 'widget' => array(<br></font><font face="courier new, monospace"> 'settings' => array(<br></font><font face="courier new, monospace"> 'size' => 12,<br></font><font face="courier new, monospace"> ),<br></font><font face="courier new, monospace"> ),<br></font><font face="courier new, monospace"> );<br></font><font face="courier new, monospace"> field_create_field($field);<br></font><font face="courier new, monospace"> field_create_instance($instance);<br></font><font face="courier new, monospace">}</font><font face="courier new, monospace"><br></font><font face="courier new, monospace">function tckn_kontrol_uninstall() {<br></font><font face="courier new, monospace"> $instance = array(<br></font><font face="courier new, monospace"> 'field_name' => 'field_tckn',<br></font><font face="courier new, monospace"> 'bundle' => 'user',<br></font><font face="courier new, monospace"> );<br></font><font face="courier new, monospace"> field_delete_field($instance['field_name']);<br></font><font face="courier new, monospace">}</font></blockquote></div><div><br></div><div><div class="gmail_default" style="font-family:'courier new',monospace">Thank you in advance for replying.</div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">mto</div></div></div></div>
</div>