This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function presave() { | |
module_invoke_all('config_presave', $this); | |
$hook = 'config_presave'; | |
$part = strtok($this->name, '.'); | |
do { | |
$hook .= '_' . $part; | |
module_invoke_all($hook, $this); | |
} while ($part = strtok('.')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/Twig/lib/Twig/Autoloader.php'; | |
Twig_Autoloader::register(); | |
// Almost empty class, just swaps Twig_Node_Print objects to Drupal_Twig_Node_Print objects. | |
class Drupal_Twig_NodeVisitor implements Twig_NodeVisitorInterface { | |
function enterNode(Twig_NodeInterface $node, Twig_Environment $env) { |
NewerOlder