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 | |
// Remove all links from the links array already in the database and only | |
// add missing links to database. | |
$missing_links = _linkchecker_bean_links_missing($bean->bid, $links); | |
// Ignore slave database briefly. | |
variable_set('maximum_replication_lag', 300); | |
db_ignore_slave(); |
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 | |
db_merge('linkchecker_bean') | |
->key(array( | |
'bid' => $bean->bid, | |
'lid' => $link->lid, | |
)) | |
->fields(array( | |
'bid' => $bean->bid, | |
'lid' => $link->lid, |
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 | |
$txn = db_transaction(); | |
try { | |
db_insert('linkchecker_bean') | |
->fields(array( | |
'bid' => $bean->bid, | |
'lid' => $link->lid, | |
)) | |
->execute(); |
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 | |
// Ignore slave database briefly. | |
variable_set('maximum_replication_lag', 300); | |
db_ignore_slave(); | |
// Remove all links from the links array already in the database and only | |
// add missing links to database. | |
$missing_links = _linkchecker_bean_links_missing($bean->bid, $links); |
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 | |
function system_init() { | |
$path = drupal_get_path('module', 'system'); | |
// Add the CSS for this module. These aren't in system.info, because they | |
// need to be in the CSS_SYSTEM group rather than the CSS_DEFAULT group. | |
drupal_add_css($path . '/system.base.css', array('group' => CSS_SYSTEM, 'every_page' => TRUE)); | |
if (path_is_admin(current_path())) { | |
drupal_add_css($path . '/system.admin.css', array('group' => CSS_SYSTEM)); | |
} |
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
# Run JS tests if merging PR into dev or has JS in it. | |
if [ "${TRAVIS_EVENT_TYPE}" == "push" ] || [ "${EXPRESS_COMMIT_HAS_JS}" ]; then | |
echo "Running Express JS tests..." | |
${ROOT_DIR}/drupal/profiles/express/tests/behat/bin/behat --stop-on-failure --strict --config ${ROOT_DIR}/drupal/profiles/express/tests/behat/behat.travis.yml --verbose --tags ${EXPRESS_JS_BEHAT_TAGS} | |
earlyexit | |
else | |
echo "Not Running Express JS tests..." | |
fi |
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
name: express | |
recipe: drupal7 | |
config: | |
webroot: web | |
xdebug: true | |
php: "7.1" | |
conf: | |
php: config/php/zzzzzz-express-custom.ini | |
#database: config/mysql/.my.cnf | |
services: |
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 | |
/** | |
* Implements of hook_wysiwyg_plugin(). | |
*/ | |
function code_syntax_highlighting_bundle_wysiwyg_plugin($editor, $version) { | |
// Add the code button for the ckeditor. | |
if ($editor === 'ckeditor') { | |
return array( | |
'code_sc' => array( |
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 ($) { | |
CKEDITOR.plugins.add('code_sc', { | |
// more code... | |
})(jQuery); |
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 ($, Backdrop, CKEDITOR) { | |
"use strict"; | |
CKEDITOR.plugins.add('csh', { | |
init: function (editor) { | |
editor.addCommand('csh_command', new CKEDITOR.dialogCommand('code_sc_generatorDialog')); | |
if (editor.ui.addButton) { | |
editor.ui.addButton('CSH', { |