function slick_layouts in Slick Carousel 7.2
Same name and namespace in other branches
- 7.3 includes/slick.admin.inc \slick_layouts()
Gets default layout options for the core Image, or Views.
Return value
array An array of available basic layouts.
2 calls to slick_layouts()
- slick_get_fieldable_elements in includes/
slick.admin.inc - Returns shared fieldable form elements for Slick field formatter and Views.
- _slick_fields_field_formatter_settings_form in slick_fields/
includes/ slick_fields.formatters.admin.inc - Off-loaded hook_field_formatter_settings_form().
File
- includes/
slick.admin.inc, line 92 - Contains optional functions called only if needed by admin pages.
Code
function slick_layouts() {
$layouts =& drupal_static(__FUNCTION__, NULL);
if (!isset($layouts)) {
$layouts = array(
'bottom' => t('Caption bottom'),
'top' => t('Caption top'),
'right' => t('Caption right'),
'left' => t('Caption left'),
'center' => t('Caption center'),
'center-top' => t('Caption center top'),
'below' => t('Caption below the slide'),
'stage-right' => t('Caption left, stage right'),
'stage-left' => t('Caption right, stage left'),
'split-right' => t('Caption left, stage right, split half'),
'split-left' => t('Caption right, stage left, split half'),
'stage-zebra' => t('Stage zebra'),
'split-zebra' => t('Split half zebra'),
);
}
return $layouts;
}