You are here

function api_tokens_filter_info in API Tokens 7

Implements hook_filter_info().

File

./api_tokens.module, line 36
The API Tokens module

Code

function api_tokens_filter_info() {
  $filters = array();
  $filters['api_tokens'] = array(
    'title' => t('API Tokens'),
    'description' => t('Replace API tokens with rendered content'),
    'process callback' => 'api_tokens_filter_tokens',
    // Don't cache fitler result as text may contain dynamic tokens.
    'cache' => FALSE,
    'weight' => 100,
  );
  return $filters;
}