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
| $query = new EntityFieldQuery(); | |
| $entities = $query->entityCondition('entity_type', 'node') | |
| ->entityCondition('bundle', 'client') | |
| ->propertyCondition('status', 1) | |
| ->fieldCondition('field_client_user', 'value', $user->uid, 'EQUALS') | |
| ->execute(); |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| watch: { | |
| sass: { | |
| files: ['assets/scss/**/*.{scss,sass}','assets/scss/_partials/**/*.{scss,sass}'], | |
| tasks: ['sass:dist'] | |
| }, | |
| coffee: { | |
| files: ['assets/coffee/*.coffee'], |
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
| # namespace jQuery | |
| (($) -> | |
| # Document.ready | |
| $ -> | |
| switchColorbox = () -> | |
| if $(window).width() < 1000 | |
| $.colorbox.remove() | |
| else |
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
| # New Code, which includes configure and variable set | |
| function psod_settings_block_info() { | |
| $blocks = array(); | |
| $blocks['trainers'] = array( | |
| 'info' => 'Trainers', | |
| 'cache' => DRUPAL_NO_CACHE, | |
| ); | |
| $blocks['employees'] = array( | |
| 'info' => 'Employees', | |
| 'cache' => DRUPAL_NO_CACHE, |
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
| function urgentteam_form_alter(&$form, &$form_state, $form_id) { | |
| if($form_id == 'views_exposed_form' && $form['#id'] == 'REPLACE THIS') { | |
| dpm($form); | |
| } | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "syscall" | |
| "time" | |
| ) |
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
| if (isset($vars['node'])) { | |
| $vars['theme_hook_suggestions'][] = 'page__' . $vars['node']->type; |
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 | |
| function states_submit($form, &$form_state) { | |
| $i = 0; | |
| while(isset($form_state['values']['states_' . $i])) { | |
| variable_set('state_' . $i, $form_state['values']['states_' . $i]); | |
| $i++; | |
| } | |
| } |
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
| # IF THE BROWSER IS INTERNET EXPLORER 10 | |
| ieten = (navigator.appVersion.indexOf("MSIE 10") != -1) | |
| if(ieten) | |
| $('html').addClass('ie10') |
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
| Starting Drupal installation. This takes a few seconds ... [ok] | |
| WD php: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'developer' for key 'name': INSERT INTO {role} (name, weight) VALUES [error] | |
| (:db_insert_placeholder_0, :db_insert_placeholder_1); Array | |
| ( | |
| [:db_insert_placeholder_0] => developer | |
| [:db_insert_placeholder_1] => 2 | |
| ) | |
| in drupal_write_record() (line 7166 of /Users/micah/Sites/SITENAME/includes/common.inc). | |
| WD php: Warning: Cannot modify header information - headers already sent by (output started at /usr/local/Cellar/drush/5.9/libexec/includes/output.inc:37) in drupal_send_headers() [warning] | |
| (line 1216 of /Users/micah/Sites/SITENAME/includes/bootstrap.inc). |