You are here

function _fbconnect_change_user_mail_field in Facebook Connect 6.2

Same name and namespace in other branches
  1. 6 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 Implements hook_install().
fbconnect_uninstall in ./fbconnect.install
Implements hook_uninstall().
fbconnect_update_6004 in ./fbconnect.install
@todo.

File

./fbconnect.install, line 180
Install, update and uninstall functions for the fbconnect module.

Code

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