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: Intro to Wordpres Plugin Development | |
Description: Generic example plugin | |
Plugin URI: http://www.daggerhart.com/blog/introduction-wordpress-plugin-development/ | |
Author: Jonathan Daggerhart | |
Author URI: http://www.daggerhart.com | |
Version: 1.0 | |
Text Domain: intro-to-plugin-dev | |
Domain: /lang |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
# jon - | |
box_name = "ubuntu-trusty" | |
# end jon - | |
dir = File.dirname(File.expand_path(__FILE__)) | |
configValues = YAML.load_file("#{dir}/puphpet/config.yaml") |
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.behaviors.videojsajax = { | |
attach: function (context, settings) { | |
if ( typeof videojs != 'undefined' ) { | |
// find all video elements with video-js class, and re-init them | |
$('video.video-js').each( function( i , element ){ | |
videojs($(element)[0] , {}, function() {}); | |
}); | |
} | |
} |
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_webform_select_options_info(). | |
*/ | |
function MODULE_webform_select_options_info() { | |
$items = array(); | |
$vocabularies = taxonomy_get_vocabularies(); |
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 | |
/** | |
* Uninstall modules. | |
*/ | |
function lth_configuration_update_7001() { | |
module_disable(array('module1', 'module2')); | |
drupal_uninstall_modules(array('module1', 'module2')); | |
} |
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_filter_info(). | |
* | |
* @link https://api.drupal.org/api/drupal/modules%21filter%21filter.api.php/function/hook_filter_info/7.x | |
*/ | |
function examplefilter_filter_info() { | |
$filters['examplefilter_node_embed'] = array( | |
'title' => 'EPI node embed', |
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( |
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
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
# 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 |
OlderNewer