Skip to content

Instantly share code, notes, and snippets.

View pixel5's full-sized avatar
💭
"You know what our users really want? To update their status." -github

Aaron Baxter pixel5

💭
"You know what our users really want? To update their status." -github
  • Livingston Hearing Aid Center
  • Texas
View GitHub Profile
@pixel5
pixel5 / my_module.info
Last active August 29, 2015 14:20
my_module.info
name = My Module
description = "My module is pretty darn awesome."
package = Awesome Modules
core = 7.x
stylesheets[all][] = my_module.css
files[] = MyPackage/ClassName.php
@pixel5
pixel5 / button.php
Created May 5, 2015 18:18
For ashopin
<?php
function YOURMODULE_form($form,&$form_state) {
// ... the rest of your form ...
$form['email_button'] = array(
'#type' => 'button',
'#value' => 'Send Email',
'#ajax' => array(
'event' => 'click',
@pixel5
pixel5 / byoc_seat.php
Last active August 29, 2015 14:20
byoc_seat
<?php
class byoc_seat {
public $number;
public $name;
public $clan;
function __construct($number, $name, $clan) {
$html_classes = array(
'byoc',