original_string: public function print_login() {
          $url = $this->skydrive->get_login_url();
  
          if ($this->options['ajax']) {
              $popup = new stdClass();
              $popup->type = 'popup';
              $popup->url = $url->out(false);
              return array('login' => array($popup));
          } else {
              echo '<a target="_blank" href="'.$url->out(false).'">'.get_string('login', 'repository').'</a>';
          }
      }
code: public function print_login() {
          $url = $this->skydrive->get_login_url();
  
          if ($this->options['ajax']) {
              $popup = new stdClass();
              $popup->type = 'popup';
              $popup->url = $url->out(false);
              return array('login' => array($popup));
          } else {
              echo '<a target="_blank" href="'.$url->out(false).'">'.get_string('login', 'repository').'</a>';
          }
      }
code_tokens: public function print_login ( ) { $ url = $ this -> skydrive -> get_login_url ( ) ; if ( $ this -> options [ 'ajax' ] ) { $ popup = new stdClass ( ) ; $ popup -> type = 'popup' ; $ popup -> url = $ url -> out ( false ) ; return array ( 'login' => array ( $ popup ) ) ; } else { echo '<a target="_blank" href="' . $ url -> out ( false ) . '">' . get_string ( 'login' , 'repository' ) . '</a>' ; } }
docstring: Print the login form, if required
  
  @return array of login options
docstring_tokens: Print the login form if required