You are here

function ulogin_update_7002 in uLogin (advanced version) 7

Disables ulogin_username module if it was installed.

File

./ulogin.install, line 140

Code

function ulogin_update_7002(&$sandbox) {
  if (module_exists('ulogin_username')) {
    module_disable(array(
      'ulogin_username',
    ), FALSE);
    drupal_uninstall_modules(array(
      'ulogin_username',
    ), FALSE);
    variable_set('ulogin_username', '[user:ulogin:first_name] [user:ulogin:last_name]');
  }
}