This file contains hidden or 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
use Drupal\node\Entity\Node; | |
function ncea_preprocess_menu(&$vars, $hook) { | |
// Subjects Nav | |
if ($hook == 'menu__subjects') { | |
foreach ($vars['items'] as $key => $item) { | |
if ($vars['items'][$key]['below']) { | |
foreach ($vars['items'][$key]['below'] as $learningAreaKey => $learningAreaItem) { | |
$learningAreaUrl = $learningAreaItem['url']; |
This file contains hidden or 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
mysite/_config.php | |
<?php | |
// . . . config above | |
//Heroku ClearDB support | |
if(isset($_ENV['CLEARDB_DATABASE_URL'])) { | |
global $databaseConfig; | |
$parts = parse_url($_ENV['CLEARDB_DATABASE_URL']); | |
$databaseConfig['type'] = 'MySQLDatabase'; | |
$databaseConfig['server'] = $parts['host']; | |
$databaseConfig['username'] = $parts['user']; |
OlderNewer