function user_field_info_alter
user_field_info_alter(&$info)
Implements hook_field_info_alter().
File
- modules/user/user.module, line 201
- Enables the user registration and login system.
Code
function user_field_info_alter(&$info) { // Add the 'user_register_form' instance setting to all field types. foreach ($info as $field_type => &$field_type_info) { $field_type_info += array('instance_settings' => array()); $field_type_info['instance_settings'] += array( 'user_register_form' => FALSE, ); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_field_info_alter/7.x