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 ($, Drupal) { | |
delete Drupal.behaviors.machineName.transliterate; | |
Drupal.behaviors.machineName.transliterate = function(str) { | |
var transliterated = str.replace(' ', '_').replace(/[^\w]+/g,'').toLowerCase(); | |
var deferred = $.Deferred(); | |
var promise = deferred.promise(); | |
deferred.resolve(transliterated); | |
promise.abort = function() {}; | |
return promise; |
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 a/includes/bootstrap.inc b/includes/bootstrap.inc | |
index 2f18c58..93ffef6 100644 | |
--- a/includes/bootstrap.inc | |
+++ b/includes/bootstrap.inc | |
@@ -912,6 +912,7 @@ function _drupal_bootstrap($phase) { | |
drupal_unset_globals(); | |
// Initialize the configuration | |
conf_init(); | |
+ drupal_request_sanitizer_sanitize(); | |
break; |
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
#!/bin/bash | |
read -p 'Domain: ' DOMAIN | |
openssl req \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout "$DOMAIN".key \ | |
-new \ |
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
/** | |
* Very simple non-hierarchical templating engine | |
* | |
* @param name | |
* @param data | |
* | |
* @returns string | |
*/ |
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_entity_type_alter(). | |
*/ | |
function example_entity_type_alter(array &$entity_types) | |
{ | |
foreach ($entity_types as $entity_type) { | |
if ($entity_type->getProvider() == 'eck' && !is_null($entity_type->getBundleOf())){ | |
$entity_type->setLinkTemplate('auto-label', $entity_type->getLinkTemplate('edit-form') . "/auto-label"); |
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
# Upgrade Debian/Ubuntu based systems and reboot if necessary. | |
--- | |
- name: "Update apt-get cache" | |
apt: | |
update_cache: yes | |
- name: "Check if there are packages available to be installed/upgraded" | |
command: /usr/lib/update-notifier/apt-check --package-names | |
register: packages |
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
details in the first comment |
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 | |
namespace Drupal\example_block\Plugin\Block; | |
use Drupal\Core\Block\BlockBase; | |
use Drupal\Core\Block\BlockPluginInterface; | |
use Drupal\Core\Form\FormStateInterface; | |
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 | |
/* | |
* Plugin Name: Blog not public admin notice | |
* Description: Because this checkbox costs real people real money | |
* Version: 1.0.0 | |
* Author: daggerhart | |
*/ | |
add_action( 'wp_ajax_dismiss_blog_not_public_notice', function(){ | |
update_option('blog_not_public_notice_dismissed', 1); |
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 a/admin/views/field-group-options.php b/admin/views/field-group-options.php | |
index ae57dfa..c0871b8 100755 | |
--- a/admin/views/field-group-options.php | |
+++ b/admin/views/field-group-options.php | |
@@ -127,6 +127,18 @@ acf_render_field_wrap(array( | |
)); | |
+// db overrides local | |
+acf_render_field_wrap(array( |