annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme.twig @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
rev   line source
Chris@0 1 /**
Chris@0 2 * Implements hook_theme().
Chris@0 3 */
Chris@0 4 function {{ machine_name }}_theme($existing, $type, $theme, $path) {
Chris@0 5 return array(
Chris@0 6 'forum_display' => array(
Chris@0 7 'variables' => array('forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
Chris@0 8 ),
Chris@0 9 'forum_list' => array(
Chris@0 10 'variables' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL),
Chris@0 11 ),
Chris@0 12 'forum_topic_list' => array(
Chris@0 13 'variables' => array('tid' => NULL, 'topics' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
Chris@0 14 ),
Chris@0 15 'forum_icon' => array(
Chris@0 16 'variables' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0),
Chris@0 17 ),
Chris@0 18 'status_report' => array(
Chris@0 19 'render element' => 'requirements',
Chris@0 20 'file' => 'system.admin.inc',
Chris@0 21 ),
Chris@0 22 'system_date_time_settings' => array(
Chris@0 23 'render element' => 'form',
Chris@0 24 'file' => 'system.admin.inc',
Chris@0 25 ),
Chris@0 26 );
Chris@0 27 }