You are here

function mathjax_filter_info in MathJax: LaTeX for Drupal 7.2

Implements hook_filter_info().

Defines a MathJax filter.

File

./mathjax.module, line 128
MathJax module.

Code

function mathjax_filter_info() {
  $filters['filter_mathjax'] = array(
    'title' => t('MathJax'),
    'description' => t('Mathematics inside the <a href="@url">configured delimiters</a> is rendered by MathJax.', array(
      '@url' => url('admin/config/content/mathjax'),
    )),
    'process callback' => 'mathjax_filter_process',
    'tips callback' => 'mathjax_filter_tips',
    'weight' => 50,
  );
  return $filters;
}