You are here

function eminline_filter_tips in Embedded Media Field 5

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

Implementation of hook_filter_tips().

File

contrib/eminline/eminline.module, line 41

Code

function eminline_filter_tips($delta, $format, $long = FALSE) {
  $output = '';
  switch ($delta) {
    case '0':
      $providers = variable_get('eminline_providers_' . $format, array());
      $output .= t('You may embed videos from the following providers %providers. Just add the video URL to your textarea in the place where you would like the video to appear, i.e. http://www.youtube.com/watch?v=pw0jmvdh.', array(
        '%providers' => implode(', ', array_filter($providers)),
      ));
  }
  return $output;
}