You are here

function _fbconnect_login_change_user_mail_field in Facebook Connect 8.2

Extend maximum email length to 320 chars

2 calls to _fbconnect_login_change_user_mail_field()
fbconnect_login_install in fbconnect_login/fbconnect_login.install
Implements hook_install().
fbconnect_login_uninstall in fbconnect_login/fbconnect_login.install
Implements hook_uninstall

File

fbconnect_login/fbconnect_login.install, line 66
Install, update and uninstall functions for the FBConnect Login module.

Code

function _fbconnect_login_change_user_mail_field($action = 'install') {
  $schema = array(
    'users' => drupal_get_schema('users'),
  );
  if ($action == 'install') {
    fbconnect_login_schema_alter($schema);
  }
  db_change_field('users', 'mail', 'mail', $schema['users']['fields']['mail']);

  //return $res;
}