W3cubDocs

/Drupal 8

function update_theme

update_theme()

Implements hook_theme().

File

core/modules/update/update.module, line 187
Handles updates of Drupal core and contributed projects.

Code

function update_theme() {
  return array(
    'update_last_check' => array(
      'variables' => array('last' => 0),
    ),
    'update_report' => array(
      'variables' => array('data' => NULL),
      'file' => 'update.report.inc',
    ),
    'update_project_status' => array(
      'variables' => array('project' => array()),
      'file' => 'update.report.inc',
    ),
    // We are using template instead of '#type' => 'table' here to keep markup
    // out of preprocess and allow for easier changes to markup.
    'update_version' => array(
      'variables' => array('version' => NULL, 'title' => NULL, 'attributes' => array()),
      'file' => 'update.report.inc',
    ),
  );
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!update!update.module/function/update_theme/8.1.x