function fractionslider_block_view in Views FractionSlider 7.2
Implements hook_block_view().
File
- ./
fractionslider.module, line 254 - Module file.
Code
function fractionslider_block_view($delta = '') {
switch ($delta) {
case 'fractionslider':
$fraction = variable_get('fractionslider_markup');
$control = variable_get('fractionslider_controls');
$pager = variable_get('fractionslider_pager');
$dimensions = variable_get('fractionslider_dimensions');
$fullwidth = variable_get('fractionslider_fullwidth');
$responsive = variable_get('fractionslider_responsive');
$increase = variable_get('fractionslider_increase');
$autochange = variable_get('fractionslider_autochange');
libraries_load('fractionslider');
drupal_add_js(array(
'fractionslider' => array(
'controls' => $control,
'pager' => $pager,
'dimensions' => $dimensions,
'fullwidth' => $fullwidth,
'responsive' => $responsive,
'increase' => $increase,
'autochange' => $autochange,
),
), 'setting');
$block['subject'] = t('FractionSlider');
$block['content'] = $fraction;
return $block;
}
}