123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php
- /**
- * @file
- * popsu_projets.features.inc
- */
- /**
- * Implements hook_ctools_plugin_api().
- */
- function popsu_projets_ctools_plugin_api() {
- list($module, $api) = func_get_args();
- if ($module == "context" && $api == "context") {
- return array("version" => "3");
- }
- list($module, $api) = func_get_args();
- if ($module == "feeds" && $api == "feeds_importer_default") {
- return array("version" => "1");
- }
- list($module, $api) = func_get_args();
- if ($module == "field_group" && $api == "field_group") {
- return array("version" => "1");
- }
- list($module, $api) = func_get_args();
- if ($module == "page_manager" && $api == "pages_default") {
- return array("version" => "1");
- }
- list($module, $api) = func_get_args();
- if ($module == "strongarm" && $api == "strongarm") {
- return array("version" => "1");
- }
- }
- /**
- * Implements hook_views_api().
- */
- function popsu_projets_views_api() {
- return array("version" => "3.0");
- }
- /**
- * Implements hook_image_default_styles().
- */
- function popsu_projets_image_default_styles() {
- $styles = array();
- // Exported image style: popsu-projets-grande-image.
- $styles['popsu-projets-grande-image'] = array(
- 'name' => 'popsu-projets-grande-image',
- 'effects' => array(
- 8 => array(
- 'label' => 'Adaptive',
- 'help' => 'Adaptive image scale according to client resolution.',
- 'effect callback' => 'image_scale_effect',
- 'dimensions callback' => 'image_scale_dimensions',
- 'form callback' => 'adaptive_image_scale_form',
- 'summary theme' => 'adaptive_image_scale_summary',
- 'module' => 'adaptive_image',
- 'name' => 'adaptive_image',
- 'data' => array(
- 'resolutions' => '1382, 992, 768, 480',
- 'mobile_first' => 1,
- 'height' => '',
- 'width' => '1382',
- 'upscale' => '',
- ),
- 'weight' => '1',
- ),
- ),
- );
- // Exported image style: popsu-projets-listing-small.
- $styles['popsu-projets-listing-small'] = array(
- 'name' => 'popsu-projets-listing-small',
- 'effects' => array(
- 10 => array(
- 'label' => 'Mise à l’échelle et recadrage',
- 'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
- 'effect callback' => 'image_scale_and_crop_effect',
- 'dimensions callback' => 'image_resize_dimensions',
- 'form callback' => 'image_resize_form',
- 'summary theme' => 'image_resize_summary',
- 'module' => 'image',
- 'name' => 'image_scale_and_crop',
- 'data' => array(
- 'width' => '101',
- 'height' => '87',
- ),
- 'weight' => '1',
- ),
- ),
- );
- return $styles;
- }
- /**
- * Implements hook_node_info().
- */
- function popsu_projets_node_info() {
- $items = array(
- 'popsu_projet' => array(
- 'name' => t('Projet'),
- 'base' => 'node_content',
- 'description' => t('Ce type de contenu permet de créer une fiche projet.'),
- 'has_title' => '1',
- 'title_label' => t('Titre du projet'),
- 'help' => '',
- ),
- );
- return $items;
- }
|