You are here

function theme_geshifield_formatter_nohighlighting in GeSHi Filter for syntax highlighting 7

Same name and namespace in other branches
  1. 6 geshifield/geshifield.module \theme_geshifield_formatter_nohighlighting()

File

geshifield/geshifield.module, line 170
Defines a CCK field for source code with GeSHi syntax highlighting.

Code

function theme_geshifield_formatter_nohighlighting($variables) {
  $output = '';
  module_load_include('inc', 'geshifilter', 'geshifilter.pages');
  if (isset($variables['element']['sourcecode'])) {
    $output .= geshifilter_geshi_process($variables['element']['sourcecode'], 'text');
  }
  return $output;
}