Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

103 lines (95 sloc) 2.686 kb
<?php
/**
* @file
* services_and_references.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function services_and_references_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "ds" && $api == "ds") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function services_and_references_views_api() {
list($module, $api) = func_get_args();
if ($module == "views" && $api == "views_default") {
return array("version" => "3.0");
}
}
/**
* Implements hook_image_default_styles().
*/
function services_and_references_image_default_styles() {
$styles = array();
// Exported image style: gallery
$styles['gallery'] = array(
'name' => 'gallery',
'effects' => array(
1 => array(
'label' => 'Scale',
'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
'effect callback' => 'image_scale_effect',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '460',
'height' => '',
'upscale' => 1,
),
'weight' => '1',
),
),
);
// Exported image style: references_list
$styles['references_list'] = array(
'name' => 'references_list',
'effects' => array(
1 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => '230',
'height' => '115',
),
'weight' => '1',
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function services_and_references_node_info() {
$items = array(
'referencia' => array(
'name' => t('Reference'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'szolg_ltat_s' => array(
'name' => t('Service'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}
Jump to Line
Something went wrong with that request. Please try again.