function _mathjax_requirements_isinstalled in MathJax: LaTeX for Drupal 7
Same name and namespace in other branches
- 6 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 54 - MathJax module install.
Code
function _mathjax_requirements_isinstalled() {
$mathjax_path = libraries_get_path('mathjax');
$jspath = $mathjax_path . '/MathJax.js';
$jsp = file_exists($jspath);
return $jsp;
}