Skip to content

Instantly share code, notes, and snippets.

@msupko
msupko / commerce_packing_slip_pdf.info
Last active August 29, 2015 14:01
Commerce Packing Slip PDF
name = Commerce Packing Slip PDF
description = Provides a PDF version of a Drupal Commerce Packing Slip.
package = Commerce (contrib)
core = 7.x
dependencies[] = commerce_packing_slip
dependencies[] = PDF_using_mPDF
@msupko
msupko / commerce_bundle.module
Last active August 29, 2015 14:00
Fixing price calculation for commerce_bundle_add_to_cart_form()
<?php
/**
* @file
* Provides product bundles for Drupal Commerce
*/
module_load_include('inc', 'commerce_bundle', 'includes/commerce_bundle.field');
/**
@msupko
msupko / bakery_override.info
Created April 28, 2014 17:20
Separate module to add fields to Bakery settings form
name = Bakery Override
description = Appends User Fields to the Bakery setting form
core = 7.x
dependencies[] = bakery
@msupko
msupko / bakery.module
Last active August 29, 2015 14:00
Adding User Profile Fields to Bakery for Drupal 7
<?php
/**
* Admin settings, see INSTALL.txt
*/
function bakery_settings($form, &$form_state) {
$form = array(
'#submit' => array('bakery_settings_submit'),
);
$form['bakery_is_master'] = array(