You are here

function eminline_filter in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 contrib/eminline/eminline.module \eminline_filter()
  2. 6 contrib/eminline/eminline.module \eminline_filter()
  3. 6.2 contrib/eminline/eminline.module \eminline_filter()

Implemenation of hook_filter().

File

contrib/eminline/eminline.module, line 6

Code

function eminline_filter($op, $delta = 0, $format = -1, $text = '') {
  switch ($op) {
    case 'list':
      return array(
        0 => t('Embedded Inline Media'),
      );
    case 'description':
      switch ($delta) {
        case 0:
          return t('Embed videos from specified URL.');
        default:
          return;
      }
    case "process":
      switch ($delta) {
        case 0:
          return _eminline_url($text, $format);
        default:
          return;
      }
    case 'settings':
      switch ($delta) {
        case 0:
          return _eminline_url_settings($format);
        default:
          return;
      }
    default:
      return $text;
  }
}