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
/** | |
* Registers the autoloader for all third-party packages. | |
*/ | |
function composer_manager_register_autoloader() { | |
static $registered = FALSE; | |
if (!$registered) { | |
$autoloader = composer_manager_vendor_dir() . '/autoload.php'; | |
if (!file_exists($autoloader)) { | |
$message = t('Autoloader not found: @file', array('@file' => $autoloader)); | |
throw new \RuntimeException($message); |
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
$databases = array ( | |
'default' => array ( | |
'default' => | |
array ( | |
'database' => 'drupalDatabase', | |
'username' => 'username', | |
'password' => 'password', | |
'host' => '127.0.0.1', | |
'port' => '', | |
'driver' => 'mysql', |
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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
Drupal.settings.lang = {}; | |
Drupal.settings.lang.test1 = "test1"; | |
Drupal.settings.lang.test2 = "test2"; | |
console.log(janrain.settings.language); | |
if(janrain.settings.language == 'en-US') { | |
console.log("Language matches"); |
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
/** | |
* Re-apply superscript to registered-mark after Gardens removes them. | |
*/ | |
jQuery(document).ready(function ($) { | |
var replaceCharacters = function(target) { | |
var pagerButtonTxt = ''; | |
var pagerButtonTxt = $(target).html(). | |
replace(/®/gi, '<sup>®</sup>'). |
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
<% if path.split('/').include?("edit") || path.split('/').include?("add") %> | |
<%= yield %> | |
<% else %> | |
<%= render "#{path}/main", :path => path, :settings => settings %> | |
<% end %> |
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
$form['results_area']['settings']['os_browser']['os'] = array( | |
'#type' => 'select', | |
'#options' => array('Windows 2012' => 'Windows 2012'), | |
'#default_value' => 'Windows 2012', | |
'#validated' => TRUE, | |
'#description' => t('What OS and Browser should be used for this test') | |
); | |
$form['results_area']['settings']['os_browser']['browser'] = array( | |
'#type' => 'select', |
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
iPad: | |
context: | |
class: 'FeatureContext' | |
extensions: | |
Behat\MinkExtension\Extension: | |
base_url: 'https://saucelabs.com' | |
javascript_session: 'selenium2' | |
goutte: | |
selenium2: | |
browser: ipad |
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
default: | |
paths: { features: features, bootstrap: /Users/alfrednutile/Drupal/behatpfizer/site/sites/all/modules/custom/behat_editor/behat/features/bootstrap/FeatureContext.php } | |
extensions: { Behat\MinkExtension\Extension: { goutte: null, selenium2: null, base_url: 'http://behateditor.localvm.com', browser_name: safari, javascript_session: selenium2 }, Drupal\DrupalExtension\Extension: { blackbox: null, subcontexts: { paths: [/Users/alfrednutile/Drupal/behatpfizer/site/sites/all/modules/] } } } | |
saucelabs: | |
context: { class: FeatureContext } | |
extensions: { Behat\MinkExtension\Extension: { default_session: selenium2, selenium2: { browser: 'internet explorer', wd_host: 'test:[email protected]/wd/hub', capabilities: { command_timeout: 600, platform: 'Windows 2012', browser: 'internet explorer', version: '10', name: 'Behat Tests ' } } } } |