You are here

jssor.module in Jssor Slider 8

Same filename and directory in other branches
  1. 7 jssor.module

Allows support of a new view handler.

File

jssor.module
View source
<?php

/**
 * @file
 * Allows support of a new view handler.
 */

/**
 * Implements hook_theme().
 */
function jssor_theme() {
  return array(
    'views_view_jssor' => array(
      'variables' => array(
        'view' => NULL,
        'rows' => NULL,
      ),
      'file' => 'jssor.theme.inc',
    ),
    'views_view_jssor_row' => array(
      'variables' => array(
        'view' => NULL,
        'rows' => NULL,
      ),
      'file' => 'jssor.theme.inc',
    ),
    'images_jssor_formatter' => array(
      'render element' => 'element',
      'file' => 'jssor.theme.inc',
    ),
    'image_jssor_formatter' => array(
      'variables' => array(
        'item' => NULL,
        'item_attributes' => NULL,
        'url' => NULL,
        'image_style' => NULL,
        'caption' => FALSE,
      ),
      'file' => 'jssor.theme.inc',
    ),
  );
}

/**
 * Implements hook_views_pre_render().
 */
function jssor_views_pre_render($view) {
  if ($view->storage
    ->id() === 'jssor') {
  }
  return $view;
}

Functions

Namesort descending Description
jssor_theme Implements hook_theme().
jssor_views_pre_render Implements hook_views_pre_render().