function smileys_filter in Smileys 5
Same name and namespace in other branches
- 6 smileys.module \smileys_filter()
Implementation of hook_filter().
File
- ./
smileys.module, line 166
Code
function smileys_filter($op, $delta = 0, $format = -1, $text = "") {
switch ($op) {
case 'list':
return array(
0 => t('Smileys filter'),
);
case 'description':
return t('Replaces smileys inside posts with images.');
case 'settings':
$form['smileys_filter'] = array(
'#type' => 'fieldset',
'#title' => t('Smileys filter'),
'#value' => t('You can define a global list of smileys on the !page.', array(
'!page' => l(t('smileys settings page'), 'admin/settings/smileys'),
)),
);
return $form;
case "process":
return smileys_filter_process($text);
default:
return $text;
}
}