function sms_sendtophone_filter in SMS Framework 6
Same name and namespace in other branches
- 5 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_filter()
- 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_filter()
Implementation of hook_filter().
File
- modules/
sms_sendtophone/ sms_sendtophone.module, line 99
Code
function sms_sendtophone_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
return array(
0 => t('Inline SMS'),
);
case 'no cache':
return $delta == 0;
case 'description':
switch ($delta) {
case 0:
return t('Highlights text between [sms] tags and appends a "send to phone" button.');
default:
return;
}
case 'process':
switch ($delta) {
case 0:
return _sms_sendtophone_filter_inline($text, $format);
default:
return $text;
}
case 'settings':
switch ($delta) {
case 0:
return _sms_sendtophone_filter_inline_settings($format);
default:
return;
}
default:
return $text;
}
}