function image_resize_filter_filter_info in Image Resize Filter 7
Implements hook_filter_info().
File
- ./
image_resize_filter.module, line 43 - After adding to a text format, this filter will parse the contents of submitted content and automatically scale image files to match the set dimensions of img tags.
Code
function image_resize_filter_filter_info() {
$filters = array();
$filters['image_resize_filter'] = array(
'title' => t('Image resize filter'),
'process callback' => 'image_resize_filter_process_filter',
'settings callback' => 'image_resize_filter_form',
'default settings' => array(
'link' => 0,
'link_class' => '',
'link_rel' => '',
'image_locations' => array(
'local',
),
),
'weight' => 0,
);
return $filters;
}