summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/filter_test.module
blob: 691d2231f3d08e56b731134a3a23c74fe821419f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
// $Id$

/**
 * @file
 * Test module for Filter module hooks and functions not used in core.
 */

/**
 * Implements hook_filter_format_insert().
 */
function filter_test_filter_format_insert($format) {
  drupal_set_message('hook_filter_format_insert invoked.');
}

/**
 * Implements hook_filter_format_update().
 */
function filter_test_filter_format_update($format) {
  drupal_set_message('hook_filter_format_update invoked.');
}

/**
 * Implements hook_filter_format_delete().
 */
function filter_test_filter_format_delete($format, $default) {
  drupal_set_message('hook_filter_format_delete invoked.');
}

/**
 * Implements hook_filter_info().
 */
function filter_test_filter_info() {
  $filters['filter_test_uncacheable'] = array(
    'title' => 'Uncacheable filter',
    'description' => 'Does nothing, but makes a text format uncacheable.',
    'cache' => FALSE,
  );
  return $filters;
}