You are here

function prevnext_theme in Prevnext 7

Same name and namespace in other branches
  1. 8 prevnext.module \prevnext_theme()
  2. 2.x prevnext.module \prevnext_theme()
  3. 2.0.x prevnext.module \prevnext_theme()

Implements hook_theme().

File

./prevnext.module, line 79
prevnext.module

Code

function prevnext_theme($existing, $type, $theme, $path) {
  return array(
    'prevnext_previous' => array(
      'variables' => array(
        'previous' => NULL,
      ),
      'template' => 'prevnext-previous',
      'path' => $path . '/templates',
    ),
    'prevnext_next' => array(
      'variables' => array(
        'next' => NULL,
      ),
      'template' => 'prevnext-next',
      'path' => $path . '/templates',
    ),
  );
}