Skip to content

Instantly share code, notes, and snippets.

View ewillhite's full-sized avatar

Evan Willhite ewillhite

View GitHub Profile
@ewillhite
ewillhite / gist:59fe36744935e157f2e9
Created August 21, 2014 15:28
Form Alter to move Drupal fields
<?php
/**
* Implements hook_form_FORMID_alter().
*/
// Checkout Form Alter
function seedco_form_commerce_checkout_form_checkout_alter(&$form, &$form_state, $form_id) {
// SECTION IN QUESTION
$account_section = $form['account'];
$form['customer_profile_billing']['commerce_customer_address']['und'][0]['account'] = $account_section;
$form['customer_profile_billing']['commerce_customer_address']['und'][0]['account']['#weight'] = -99;
var charts = function () {
// Chart.defaults.global.responsive = true;
var data = {
labels: ["Physical Body", "Emotions & Meaning", "Relationships", "Time", "Work/Career/Mission", "Finances", "Celebrate & Continue"],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(244, 232, 244,0.7)",
strokeColor: "rgba(244, 232, 244,0.7)",
pointColor: "rgba(244, 232, 244,0.7)",