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
{ | |
"name": "drupal8-boilerplate", | |
"description": "Domain7 Drupal 8 base boilerplate", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"require-dev": { | |
"drupal/console": "^1.0" | |
}, |
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
<?php | |
//@file template.php | |
/** | |
* Implements hook_field_group_pre_render_alter() | |
* Add token support for field group attributes | |
* | |
* NOTE: this is basically a copy/paste of field_group_pre_render_html_element() | |
* from the field_group module with some changes | |
* |
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
<?php | |
//put this in hook_bock_view | |
$block['content'] = array( | |
///.... | |
'#attached' => array( | |
'css' => array( | |
drupal_get_path('module', 'mymodule') . '/css/mymodule.css', | |
), |
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
/** | |
* Implements hook_block_info(). | |
* | |
* This hook declares what blocks are provided by the module. | |
*/ | |
function block_example_block_info() { | |
// This sample shows how to provide default settings. In this case we'll | |
// enable the block in the first sidebar and make it visible only on | |
// 'node/*' pages. See the hook_block_info() documentation for these. |
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
/*! | |
{ | |
"name": "CSS checked", | |
"property": ":checked", | |
"authors": ["richarcher"], | |
"tags": ["css"], | |
"notes": [{ | |
"name": "Related Github Issue", | |
"href": "https://github.com/Modernizr/Modernizr/issues/845" | |
}] |
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
:1,$s/_\([a-z]\)/\u\1/gic |
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
/* | |
* Gallery Module that is triggered from a gallery bean block | |
* Implemented using frescojs | |
* Features | |
* - FrescoJS is loaded async in the background like a champ | |
* - Click thumbnail to load image link | |
* | |
* Markup: | |
* Assumes a div element has some child elements containing | |
* a thumnail link to the large image |
NewerOlder