You are here

function forena_filter in Forena Reports 6.2

Same name and namespace in other branches
  1. 6 forena.module \forena_filter()

Implememntation of hook_filter

File

./forena.module, line 717

Code

function forena_filter($op, $delta = 0, $format = -1, $text = '') {
  if ($op == 'list') {
    return array(
      0 => t('Insert Report'),
    );
  }
  switch ($delta) {
    case 0:
      switch ($op) {
        case 'description':
          return t('Inserts a forena report');
        case 'prepare':
          return $text;
        case 'process':
          return _forena_filter_process($text);
        case 'no cache':
          return TRUE;
      }
  }
}