You are here

function theme_geshifield_formatter_default in GeSHi Filter for syntax highlighting 6

Same name and namespace in other branches
  1. 7 geshifield/geshifield.module \theme_geshifield_formatter_default()

File

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

Code

function theme_geshifield_formatter_default($element) {
  $output = '';
  module_load_include('inc', 'geshifilter', 'geshifilter.pages');
  if (isset($element['#item']['sourcecode'])) {
    $output .= geshifilter_geshi_process($element['#item']['sourcecode'], $element['#item']['language']);
  }
  return $output;
}