public function filterOffPastAuthorizationRecords(&$user, &$user_auth_data, $time = NULL) {
    if ($time != NULL || variable_get('ldap_help_user_data_clear', 0)) {
      $clear_time = ($time) ? $time : variable_get('ldap_help_user_data_clear_set_date', 0);
      if ($clear_time > 0 && $clear_time < time()) {
        foreach ($user_auth_data as $consumer_id => $entry) {
          if ($entry['date_granted'] < $clear_time) {
            unset($user_auth_data[$consumer_id]);
            if (isset($user->data['ldap_authorizations'][$this->consumerType][$consumer_id])) {
              unset($user->data['ldap_authorizations'][$this->consumerType][$consumer_id]);
            }
          }
        }
      }
    }
  }
public function filterOffPastAuthorizationRecords(&$user, &$user_auth_data, $time = NULL) {
    if ($time != NULL || variable_get('ldap_help_user_data_clear', 0)) {
      $clear_time = ($time) ? $time : variable_get('ldap_help_user_data_clear_set_date', 0);
      if ($clear_time > 0 && $clear_time < time()) {
        foreach ($user_auth_data as $consumer_id => $entry) {
          if ($entry['date_granted'] < $clear_time) {
            unset($user_auth_data[$consumer_id]);
            if (isset($user->data['ldap_authorizations'][$this->consumerType][$consumer_id])) {
              unset($user->data['ldap_authorizations'][$this->consumerType][$consumer_id]);
            }
          }
        }
      }
    }
  }
public function filterOffPastAuthorizationRecords ( & $ user , & $ user_auth_data , $ time = NULL ) { if ( $ time != NULL || variable_get ( 'ldap_help_user_data_clear' , 0 ) ) { $ clear_time = ( $ time ) ? $ time : variable_get ( 'ldap_help_user_data_clear_set_date' , 0 ) ; if ( $ clear_time > 0 && $ clear_time < time ( ) ) { foreach ( $ user_auth_data as $ consumer_id => $ entry ) { if ( $ entry [ 'date_granted' ] < $ clear_time ) { unset ( $ user_auth_data [ $ consumer_id ] ) ; if ( isset ( $ user -> data [ 'ldap_authorizations' ] [ $ this -> consumerType ] [ $ consumer_id ] ) ) { unset ( $ user -> data [ 'ldap_authorizations' ] [ $ this -> consumerType ] [ $ consumer_id ] ) ; } } } } } }
this is a function to clear off
this is a function to clear off