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
javascript:(function()%20{var%20allBody%20=%20document.getElementsByTagName('body');%20var%20body%20=%20allBody[0].outerHTML;%20var%20regex%20=%20new%20RegExp(/\<div%20id="([0-9]+?)"%20style/);%20var%20matches%20=%20regex.exec(body);%20document.getElementById(matches[1]).remove();%20var%20grayDiv%20=%20document.getElementById('LNA_paywall_modal');%20grayDiv.parentNode.remove();%20})() |
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
javascript:(function()%20{var%20allBody%20=%20document.getElementsByTagName('body');%20var%20body%20=%20allBody[0].outerHTML;%20var%20regex%20=%20new%20RegExp(/\<div%20id="([0-9]+?)"%20style/);%20var%20matches%20=%20regex.exec(body);%20document.getElementById(matches[1]).remove();%20var%20grayDiv%20=%20document.getElementById('LNA_paywall_modal');%20grayDiv.parentNode.remove();%20})() |
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
/** | |
* Implements hook_module_implements_alter(). | |
*/ | |
function mymodule_module_implements_alter(&$implementations, $hook) { | |
// We need this hook running at the end. | |
if ($hook == 'form_alter' && isset($implementations['mymodule'])) { | |
$mymodule = $implementations['mymodule']; | |
unset($implementations['mymodule']); | |
$implementations['mymodule'] = $mymodule; | |
} |
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
/** | |
* Helper function that creates the default nodequeues. | |
*/ | |
function demo_create_default_nodequeues() { | |
$queue = nodequeue_load_queue_by_name('nodequeue_name'); | |
if (!$queue) { | |
$nodequeue = new stdClass(); | |
$nodequeue->name = 'nodequeue_name'; | |
$nodequeue->title = 'My Nodequeue'; |
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
$vocabulary = taxonomy_vocabulary_machine_name_load($name); | |
$vid = $vocabulary->vid; | |
$term = new stdClass(); | |
$term->vid = $vid; | |
$term->name = 'foo'; | |
$term->description = 'bar'; | |
taxonomy_term_save($term); |
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 | |
/** | |
* This works for Selenium and other real browsers that support screenshots. | |
* | |
* @Then /^show me an screenshot$/ | |
*/ | |
public function showMeAnScreenshot() { | |
$image_data = $this->getSession()->getDriver()->getScreenshot(); |
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
// En Settings.php | |
$local_settings = __DIR__ . "/settings.local.php"; | |
if (file_exists($local_settings)) { | |
include $local_settings; | |
} | |
if (empty($settings['hash_salt'])) { | |
$settings['hash_salt'] = hash('sha256', serialize($databases)); | |
} |
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
location / { | |
# try_files $uri @rewrite; # For Drupal <= 6 | |
try_files $uri /index.php?$query_string; # For Drupal >= 7 | |
} |
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
composer require --dev drupal/console:~1.0 --prefer-dist --optimize-autoloader |
OlderNewer