You are here

function _logintoboggan_toggleboggan_js in LoginToboggan 5

1 call to _logintoboggan_toggleboggan_js()
_logintoboggan_toggleboggan in ./logintoboggan.module
User login block with JavaScript to expand

File

./logintoboggan.module, line 593
Logintoboggan Module

Code

function _logintoboggan_toggleboggan_js() {
  return '
  $(function() {
      if (Drupal.jsEnabled) {
        $("#toboggan-login").hide();
      }
    }
  );
  function toggleboggan() {
    if (Drupal.jsEnabled) {
      $("#toboggan-login").toggle();
    }
  }
  ';
}