You are here

function _mathjax_requirements_isinstalled in MathJax: LaTeX for Drupal 6

Same name and namespace in other branches
  1. 7 mathjax.install \_mathjax_requirements_isinstalled()

Determines whether the MathJax sources are present.

It checks if MathJax.js is present. This function is used by mathjax_requirements()

Return value

bool True if MathJax is installed

1 call to _mathjax_requirements_isinstalled()
mathjax_requirements in ./mathjax.install
Implements hook_requirements().

File

./mathjax.install, line 52
MathJax module install.

Code

function _mathjax_requirements_isinstalled() {
  $mathjax_path = 'sites/all/libraries/mathjax/';
  $jspath = $mathjax_path . '/MathJax.js';
  $jsp = file_exists($jspath);
  return $jsp;
}