Skip to content

Commit

Permalink
PGW-23: Image style added
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisCompucorp committed Jul 14, 2017
1 parent b1ec248 commit 5cd41db
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sites/all/modules/features/tpg_overview/tpg_overview.features.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,30 @@ function tpg_overview_ctools_plugin_api($module = NULL, $api = NULL) {
}
}

/**
* Implements hook_image_default_styles().
*/
function tpg_overview_image_default_styles() {
$styles = array();

// Exported image style: whats_on_400x324.
$styles['whats_on_400x324'] = array(
'label' => 'whats on 400x324',
'effects' => array(
2 => array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 400,
'height' => 324,
),
'weight' => 1,
),
),
);

return $styles;
}

/**
* Implements hook_node_info().
*/
Expand Down
1 change: 1 addition & 0 deletions sites/all/modules/features/tpg_overview/tpg_overview.info
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ features[field_instance][] = node-external_links-field_link_description
features[field_instance][] = node-internal_links-field_linked_entity
features[field_instance][] = node-overview_page-body
features[field_instance][] = node-overview_page-field_overview_section
features[image][] = whats_on_400x324
features[node][] = external_links
features[node][] = internal_links
features[node][] = overview_page
Expand Down

0 comments on commit 5cd41db

Please sign in to comment.