Skip to content

Instantly share code, notes, and snippets.

@dsnopek
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save dsnopek/610c43c3210701af56e5 to your computer and use it in GitHub Desktop.

Select an option

Save dsnopek/610c43c3210701af56e5 to your computer and use it in GitHub Desktop.

Revisions

  1. dsnopek revised this gist May 23, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions oa-redirect-hack.php
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    /**
    * Implements hook_module_implemnts_alter().
    */
    function MODULE_billing_module_implements_alter(&$implementations, $hook) {
    elseif ($hook == 'user_login' && isset($implementations['oa_core'])) {
    function MODULE_module_implements_alter(&$implementations, $hook) {
    if ($hook == 'user_login' && isset($implementations['oa_core'])) {
    // The oa_core_user_login() function does some INSANE things with redirecting
    // the user to their home dashboard and it messes up our registration workflow.
    unset($implementations['oa_core']);
  2. dsnopek created this gist May 23, 2014.
    10 changes: 10 additions & 0 deletions oa-redirect-hack.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    /**
    * Implements hook_module_implemnts_alter().
    */
    function MODULE_billing_module_implements_alter(&$implementations, $hook) {
    elseif ($hook == 'user_login' && isset($implementations['oa_core'])) {
    // The oa_core_user_login() function does some INSANE things with redirecting
    // the user to their home dashboard and it messes up our registration workflow.
    unset($implementations['oa_core']);
    }
    }