You are here

function space_user::deactivate in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces_user/plugins/space_user.inc \space_user::deactivate()
  2. 7 spaces_user/plugins/space_user.inc \space_user::deactivate()

Override of deactivate(). We don't have too many good options here except to leave the user/x path. If the site frontpage has also been set to a user/x path, we just need to fail miserably.

Overrides space::deactivate

File

spaces_user/plugins/space_user.inc, line 27

Class

space_user
User integration for Spaces.

Code

function deactivate() {
  if (strpos(variable_get('site_frontpage', 'node'), 'user') !== 0) {
    drupal_goto('<front>');
  }
  return;
}