Skip to content

Instantly share code, notes, and snippets.

View ezra-g's full-sized avatar

Ezra Gildesgame ezra-g

View GitHub Profile
import React, { Component } from 'react';
class Foo extends Component {
render() {
return (
<div>
<div>
</div>
import React, { Component } from 'react';
class Foo extends Component {
render() {
return (
<div>
<div>
</div>
import React, { Component } from 'react';
class Foo extends Component {
render() {
return (
<div>
<div>
</div>
- url: /mao\.yaml
static_files: mao.yaml
upload: mao\.yaml
application_readable: true
drupal_set_message('Some text');
if ($ajax == 'ajax') {
$commands = array();
$commands[] = ajax_command_append('#messages', theme('status_messages'));
$page = array('#type' => 'ajax', '#commands' => $commands);
ajax_deliver($page);
}
/Users/ezra/Developer/htdocs/acquia/commons-profile/modules/commons/commons_groups/commons_groups.strongarm.inc:
158 $strongarm->api_version = 1;
159 $strongarm->name = 'pathauto_node_pattern';
160: $strongarm->value = 'groups/[node:og-group-ref:0:title]/[node:title]';
161 $export['pathauto_node_pattern'] = $strongarm;
162
/Users/ezra/Developer/htdocs/acquia/commons-profile/modules/commons/commons_notify/commons_notify.features.inc:
30 "message_text" : { "und" : [
<?php
/**
* Return TRUE if the entity is acting as a group.
*
* @param $entity_type
* The entity type.
* @param $entity
* The entity object, or the entity ID.
*/
function og_is_group($entity_type, $entity) {
/**
* Return TRUE if the entity is acting as a group.
*
* @param $entity_type
* The entity type.
* @param $entity
* The entity object, or the entity ID.
*/
function og_is_group($entity_type, $entity) {
if (module_exists('commons_search_solr_user')) {
$field_instances['user-user-group_group']['view modes']['search_results'] = array(
'label' => 'hidden',
'module' => 'commons_trusted_contacts',
'custom settings' => TRUE,
'type' => 'trusted_contact',
);
}
/**
* Implements hook_form_alter().
*/
function commons_soundcloud_audio_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'soundcloud_audio_node_form') {
dpm($form, 'form');
}
}
function commons_soundcloud_audio_element_info_alter(&$type) {