-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
# Taxonomy terms: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php | |
# Menu links: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php | |
# File items: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php | |
# Nodes: |
<?php | |
function MY_MODULE_form_alter(&$form, &$form_state, $form_id) | |
{ | |
$form['#prefix'] = '<div id="formwrapper">'; | |
$form['#suffix'] = '</div>'; | |
// the submit button | |
$form['save']['#ajax'] = array( | |
'callback' => 'MY_MODULE_form_ajax_submit', | |
'wrapper' => 'formwrapper', |
<?php | |
/** | |
* Example of valid statements for an alias file. Use this | |
* file as a guide to creating your own aliases. | |
* | |
* Aliases are commonly used to define short names for | |
* local or remote Drupal installations; however, an alias | |
* is really nothing more than a collection of options. | |
* A canonical alias named "dev" that points to a local |
<?php | |
/** | |
* Migration class for migrating the source translations. | |
*/ | |
class MySourceTranslationMigration extends Migration { | |
// Nothing special here. Just set up a node migration, migrating to nodes | |
// that will serve as translation sources. | |
// ... |