You are here

function _fbconnect_change_user_mail_field in Facebook Connect 6

Same name and namespace in other branches
  1. 6.2 fbconnect.install \_fbconnect_change_user_mail_field()

Extend maximum email length to 320 chars

3 calls to _fbconnect_change_user_mail_field()
fbconnect_install in ./fbconnect.install
@file Implementation of hook_install().
fbconnect_uninstall in ./fbconnect.install
Implementation of hook_uninstall().
fbconnect_update_6004 in ./fbconnect.install

File

./fbconnect.install, line 106
Implementation of hook_install().

Code

function _fbconnect_change_user_mail_field($action = 'install') {
  $schema = array(
    'users' => drupal_get_schema('users'),
  );
  if ($action == 'install') {
    fbconnect_schema_alter($schema);
  }
  db_change_field($res, 'users', 'mail', 'mail', $schema['users']['fields']['mail']);
  return $res;
}