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
$module_data = \Drupal::config('core.extension')->get('module'); | |
unset($module_data['my_module']); | |
\Drupal::configFactory()->getEditable('core.extension')->set('module', $module_data)->save(); |
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
$siren = mt_rand(100000000, 999999999); | |
$key = (12 + 3 * ($siren % 97)) % 97; | |
print 'FR' . $key . $siren; |
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
diff --git i/includes/services.runtime.inc w/includes/services.runtime.inc | |
index b7c7d3c..10a36d6 100644 | |
--- i/includes/services.runtime.inc | |
+++ w/includes/services.runtime.inc | |
@@ -95,8 +95,8 @@ class ServicesArgumentException extends ServicesException { | |
function services_controller_execute($controller, $args = array(), $options = array()) { | |
$server_info = services_server_info_object(); | |
if (!empty($server_info->debug)) { | |
- watchdog('services', 'Controller: <pre>@controller</pre>', array('@controller' => print_r($controller, TRUE)), WATCHDOG_DEBUG); | |
- watchdog('services', 'Passed arguments: <pre>@arguments</pre>', array('@arguments' => print_r($args, TRUE)), WATCHDOG_DEBUG); |
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
diff --git i/drush/advancedqueue.drush.inc w/drush/advancedqueue.drush.inc | |
index 8e24a28..8de61db 100644 | |
--- i/drush/advancedqueue.drush.inc | |
+++ w/drush/advancedqueue.drush.inc | |
@@ -10,6 +10,7 @@ | |
*/ | |
function advancedqueue_drush_command() { | |
$items = array(); | |
+ | |
$items['advancedqueue-process-queue'] = 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
diff --git i/index.php w/index.php | |
index 8b83199..2efe8c9 100644 | |
--- i/index.php | |
+++ w/index.php | |
@@ -16,6 +16,29 @@ | |
*/ | |
define('DRUPAL_ROOT', getcwd()); | |
-require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
-drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
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
global $language; | |
$locale_t = &drupal_static('locale'); | |
$locale_strings = array_flip($locale_t[$language->language]['']); | |
$untranslated_value = strtr($translated_value, $locale_strings); |
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
$routes = array( | |
'https://www.domain.local/' => (object) array( | |
'upstream' => 'drupal', | |
'original_url' => 'https://www.{default}/', | |
), | |
'http://blog.domain.local/' => (object) array( | |
'upstream' => 'drupal', | |
'original_url' => 'http://blog.{default}/', | |
), | |
'http://pro.domain.local/' => (object) 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
/** | |
* Implements hook_domain_default_domains(). | |
*/ | |
function MYMODULE_domain_default_domains() { | |
$domains = array(); | |
$domains['wipe-domain-tables'] = 'wipe-domain-tables'; | |
$routes = (array) json_decode(base64_decode(getenv('PLATFORM_ROUTES'))); | |
if (!empty($routes) && is_array($routes)) { |
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
$view = new view(); | |
$view->name = 'payment_transactions'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'commerce_payment_transaction'; | |
$view->human_name = 'Payment transactions'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
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 hook_admin_paths_alter(). | |
*/ | |
function MYMODULE_admin_paths_alter(&$paths) { | |
$paths['node/*/edit'] = FALSE; | |
$paths['node/add'] = FALSE; | |
$paths['node/add/*'] = FALSE; | |
} |
NewerOlder