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
#!/usr/bin/php | |
<?php | |
/** | |
* @file | |
* A Git pre-commit hook script to check files for PHP syntax errors and Drupal | |
* coding standards violations. Requires phpcs and Coder Sniffer: | |
* | |
* @see https://drupal.org/node/1419988 | |
* Hat tip: dcq.module (DrupalCodeQuality) |
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 | |
function your_theme_js_alter(&$javascript) { | |
global $base_url; | |
$jQuery_version = '1.11.0'; | |
// Local Cached copy > $jQuery_local = $base_url.'/'.drupal_get_path('module', 'my_module').'/jquery-'. $jQuery_version .'.min.js'; | |
$jQuery_cdn = 'http://code.jquery.com/jquery-' . $jQuery_version . '.min.js'; | |
$javascript['misc/jquery.js']['data'] = $jQuery_cdn; | |
$javascript['misc/jquery.js']['version'] = $jQuery_version; |
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 | |
/** | |
* @file | |
* Definition of Drupal\comment\CommentForm. | |
*/ | |
namespace Drupal\comment_timer; | |
use Drupal\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 | |
/** | |
* @file | |
* Contains \Drupal\Core\Field\Plugin\Field\FieldWidget\NumberWidget. | |
*/ | |
namespace Drupal\Core\Field\Plugin\Field\FieldWidget; | |
use Drupal\Core\Field\FieldItemListInterface; |
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 | |
/** | |
* @file | |
* Contains \Drupal\comment_timer\Plugin\Field\FieldWidget\NumberWidget. | |
*/ | |
namespace Drupal\comment_timer\Plugin\Field\FieldWidget; | |
use Drupal\Core\Field\FieldItemListInterface; |
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
<div id="content-container"> | |
<div class="main-content"> | |
<!-- left, right, main columns --> | |
</div> | |
<div id="breadcrumbs"> | |
.... | |
</div> |
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
/** | |
* Overrides parent::render_grouping(). | |
*/ | |
function render_grouping($records, $groupings = array(), $group_rendered = NULL) { | |
$sets = parent::render_grouping($records, $groupings, $group_rendered); | |
// Apply the offset and limit. | |
array_walk($sets, array($this, 'group_limit_recursive')); | |
return $sets; | |
} |
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
/** | |
* This is search be afeared! | |
*/ | |
function urbaninstitute_search_menu() { | |
$item['counter'] = array( ); | |
} | |
function urbaninstitute_search_menu_counter_callback() { |
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
{ | |
"nodes":[ | |
{ | |
"node":{ | |
"title":"", | |
"body_summary":"", | |
"type":"", | |
"field_research_area":"", | |
"field_author_field_fullname":"", | |
"field_author":"" |
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
{ | |
"nodes":[ | |
{ | |
"node":{ | |
"title":"", | |
"body_summary":"", | |
"type":"", | |
"field_research_area":"", | |
"field_author_field_fullname":"", | |
"field_author":"", |
OlderNewer