You are here

function _mathjax_library_present in MathJax: LaTeX for Drupal 3.0.x

Same name and namespace in other branches
  1. 8.2 mathjax.install \_mathjax_library_present()
  2. 7.2 mathjax.install \_mathjax_library_present()

Determines whether the MathJax sources are present.

Return value

bool True if MathJax is installed

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

File

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

Code

function _mathjax_library_present() {
  $path = Drupal::root() . '/libraries/MathJax/MathJax.js';
  return file_exists($path);
}