big update

This commit is contained in:
2018-09-07 10:54:01 +02:00
parent 8fb74fdf95
commit fdd2f67cc6
243 changed files with 18538 additions and 2087 deletions
@@ -7,24 +7,19 @@
/**
* Implements hook_ctools_plugin_api().
*/
function popsu_villes_ctools_plugin_api() {
list($module, $api) = func_get_args();
function popsu_villes_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "boxes" && $api == "box") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
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");
}
@@ -33,8 +28,8 @@ function popsu_villes_ctools_plugin_api() {
/**
* Implements hook_views_api().
*/
function popsu_villes_views_api() {
return array("version" => "3.0");
function popsu_villes_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
@@ -45,47 +40,30 @@ function popsu_villes_image_default_styles() {
// Exported image style: popsu-villes-grande-image.
$styles['popsu-villes-grande-image'] = array(
'name' => 'popsu-villes-grande-image',
'label' => 'popsu-villes-grande-image',
'effects' => array(
2 => 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',
21 => array(
'name' => 'image_scale_and_crop',
'data' => array(
'resolutions' => '1382, 992, 768, 480',
'mobile_first' => 1,
'height' => '',
'width' => '1382',
'upscale' => '',
'width' => 485,
'height' => 324,
),
'weight' => '2',
'weight' => 1,
),
),
);
// Exported image style: popsu-villes-listing-small.
$styles['popsu-villes-listing-small'] = array(
'name' => 'popsu-villes-listing-small',
'label' => 'popsu-villes-listing-small',
'effects' => array(
5 => 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',
'width' => 101,
'height' => 87,
),
'weight' => '1',
'weight' => 1,
),
),
);
@@ -107,5 +85,6 @@ function popsu_villes_node_info() {
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}