Skip to content

Commit

Permalink
Merge pull request #67 from palantirnet/provide-default-image-style
Browse files Browse the repository at this point in the history
Provide a default image style in D7
  • Loading branch information
froboy authored Dec 17, 2018
2 parents 84ad8fa + 0c7ed73 commit cbe3b06
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions search_api_federated_solr.module
Original file line number Diff line number Diff line change
Expand Up @@ -527,3 +527,25 @@ function search_api_federated_solr_permission() {
),
);
}

/**
* Implements hook_image_default_styles().
*/
function search_api_federated_solr_image_default_styles() {
$styles = array();
$styles['search_api_federated_solr_image'] = array(
'label' => 'Federated Image',
'effects' => array(
array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 425,
'height' => 239,
),
'weight' => 0,
),
),
);

return $styles;
}

0 comments on commit cbe3b06

Please sign in to comment.