You are here

function theme_backstretch in Backstretch 7.2

Theme function for a Backstretch.

2 theme calls to theme_backstretch()
backstretch_context_reaction_backstretch::execute in plugins/backstretch_context_reaction_backstretch.inc
backstretch_field_formatter_view in ./backstretch.module
Implements hook_field_formatter_view().

File

./backstretch.module, line 439
Main file for Backstretch Formatter module.

Code

function theme_backstretch($variables) {

  // Normalize the variables.
  $id = $variables['id'];
  $options = $variables['options'];
  drupal_add_js(drupal_get_path('module', 'backstretch') . '/js/jquery.backstretch.min.js');
  drupal_add_js(drupal_get_path('module', 'backstretch') . '/js/backstretch.js');
  drupal_add_js(array(
    'backstretch' => array(
      $id => $options,
    ),
  ), 'setting');
  return '';
}