<?php/** * @file * Install, update, uninstall the d3_sankey_examples module. *//** * Implements hook_requirements(). */functiond3_sankey_examples_requirements($phase){$requirements=array();$t=get_t();if($phase==='runtime'){// Remind users to disable this module on the live site.$requirements['d3_sankey_examples']=array('title'=>$t('D3 Sankey Examples module'));$requirements['d3_sankey_examples']['severity']=REQUIREMENT_WARNING;$requirements['d3_sankey_examples']['value']=$t('Publicly-visible example page at <a href="@link_href"><code>@link_text</code></a>!',array('@link_href'=>url('d3/examples/sankey'),'@link_text'=>'d3/examples/sankey',));$requirements['d3_sankey_examples']['description']=$t('The D3 Sankey Examples module is only intended to be used as a developer reference: you should disable it on any site that can be seen by the general public, because it defines an example page that has no access control!');}return$requirements;}/** * Installs d3_sankey_examples module. */functiond3_sankey_examples_update_7000(&$sandbox){// Noop to ensure Drupal stores a schema version in the database.}