function filter_test_filter_info

Implements hook_filter_info().

File

modules/simpletest/tests/filter_test.module, line 32

Code

function filter_test_filter_info() {
    $filters['filter_test_uncacheable'] = array(
        'title' => 'Uncacheable filter',
        'description' => 'Does nothing, but makes a text format uncacheable.',
        'cache' => FALSE,
    );
    $filters['filter_test_replace'] = array(
        'title' => 'Testing filter',
        'description' => 'Replaces all content with filter and text format information.',
        'process callback' => 'filter_test_replace',
    );
    return $filters;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.