function geshifield_widget_info in GeSHi Filter for syntax highlighting 6
Implementation of hook_widget_info().
File
- geshifield/
geshifield.module, line 110 - Defines a CCK field for source code with GeSHi syntax highlighting.
Code
function geshifield_widget_info() {
return array(
'geshifield_textarea' => array(
'label' => t('Source code text area'),
'field types' => array(
'geshifield',
),
// Let CCK core handle multiple values.
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
// Do not provide default values through CCK core's
// default value handling. @todo: or should we?
'default value' => CONTENT_CALLBACK_NONE,
),
),
);
// @todo provide a file upload widget too.
}