You are here

function slickgrid_theme in Slickgrid 7.2

Same name and namespace in other branches
  1. 6 slickgrid.module \slickgrid_theme()
  2. 7 slickgrid.module \slickgrid_theme()

Implementation of hook_theme().

File

./slickgrid.module, line 67

Code

function slickgrid_theme() {
  $path = drupal_get_path('module', 'slickgrid');
  return array(
    // slickgrid theme function
    'slickgrid' => array(
      'arguments' => array(
        'view' => array(),
      ),
      'path' => $path . '/theme',
      'file' => 'theme.inc',
    ),
    // slickgrid controls theme function
    'slickgrid_controls' => array(
      'arguments' => array(
        'view' => array(),
      ),
      'path' => $path . '/theme',
      'file' => 'theme.inc',
    ),
    // Theme individual control
    'slickgrid_control' => array(
      'arguments' => array(
        'type' => null,
        'view' => array(),
      ),
      'path' => $path . '/theme',
      'file' => 'theme.inc',
    ),
    // Theme add control differently
    'slickgrid_control__add' => array(
      'arguments' => array(
        'type' => null,
        'view' => array(),
      ),
      'path' => $path . '/theme',
      'file' => 'theme.inc',
    ),
    // slickgrid tabs theme function
    'slickgrid_tabs' => array(
      'arguments' => array(
        'view' => array(),
      ),
    ),
    // Theme the views plugin form table
    'slickgrid_views_plugin_table' => array(
      'render element' => 'form',
      'path' => $path . '/theme',
      'file' => 'theme.inc',
    ),
  );
}