You are here

function picture_filter_info in Picture 7

Same name and namespace in other branches
  1. 7.2 picture.module \picture_filter_info()

Implements hook_filter_info().

File

./picture.module, line 1179
Picture formatter.

Code

function picture_filter_info() {
  $filters = array();
  $filters['picture'] = array(
    'title' => t('Make images responsive with the picture module'),
    'description' => t('Replace img tags with markup that contains media width breakpoints. The appropriate image file size will be chosen.'),
    'process callback' => '_picture_filter_process',
    'tips callback' => '_picture_filter_tips',
    'type' => 'FILTER_TYPE_TRANSFORM_REVERSIBLE',
  );
  return $filters;
}