Skip to content

Instantly share code, notes, and snippets.

View mkorostoff's full-sized avatar

Jersey Len mkorostoff

View GitHub Profile
[
{
"anatomical_regions": [
{
"uri": "http://master.nbcsports.roundarch.com/api/v1/category/1",
"id": "1",
"resource": "taxonomy_term",
"name": "Arms",
"thumbnail": {
{
"hero": {
"body": {
"value": "<p>sdds dsf sdf sdfsdf ds</p>\n",
"summary": "",
"format": "filtered_html"
},
"subtitle": "test aa",
"hero_image": {
{
"hero": {
"joined_programs": [
{
"anatomical_regions": [
{
"uri": "http://localhost:8888/api/v1/category/26",
"id": "26",
"resource": "taxonomy_term",
<?php
/**
* Empty the sponsor text fields, to allow max_length change
*/
function radius_sponsor_update_7002() {
db_truncate('field_data_field_sponsor_post_logo')->execute();
db_truncate('field_revision_field_sponsor_post_logo')->execute();
db_truncate('field_data_field_sponsor_pre_logo')->execute();
db_truncate('field_revision_field_sponsor_pre_logo')->execute();
<?php
/**
* Menu callback for /settings/billing-information/payment-history
*/
function _radius_settings_payment_history_menu_callback() {
$payment_records = array(
array(
"name" => "Rohan",
"payment_method" => "Amex",
<ul>
<?php foreach($links as $link): ?>
<li>
<?php print render($link); ?>
</li>
<?php endforeach; ?>
</ul>
<?php
/**
* Menu callback for /settings/billing-information/payment-history
*/
function _radius_settings_payment_history_menu_callback() {
$payment_history = get_payment_history();
$page = array('content' => theme('table', $payment_history);
return $page;
}
<?php
/**
* Implements hook_theme().
*/
function radius_settings_theme() {
//Override the theme default page.tpl.php
return array(
"page__settings" => array(
"template" => "page--settings",
"path" => drupal_get_path('module', 'radius_settings') . '/theme',
{
"trainer_hero": [
{
"carousel_slides": [
{
"uri": "http://master.nbcsports.roundarch.com/api/v1/entity_field_collection_item/436",
"id": "436",
"resource": "field_collection_item",
"slide_description": "These are the Radius Trainers.\r\nThey are Here to Help you get fit\r\nand stay healthy\r\n",
"slide_image": {
[
{
"anatomical_regions": [
{
"uri": "http://master.nbcsports.roundarch.com/api/v1/category/26",
"id": "26",
"resource": "taxonomy_term",
"name": "Legs",
"thumbnail": {
"type": "image",