You are here

function _mathjax_library_present in MathJax: LaTeX for Drupal 7.2

Same name and namespace in other branches
  1. 8.2 mathjax.install \_mathjax_library_present()
  2. 3.0.x 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 55
MathJax module install.

Code

function _mathjax_library_present() {
  if (function_exists('libraries_get_path')) {
    $mathjax_path = libraries_get_path('mathjax');
    $jspath = $mathjax_path . '/MathJax.js';
    $jsp = file_exists($jspath);
    return $jsp;
  }
  return FALSE;
}