Skip to content

Instantly share code, notes, and snippets.

View SebCorbin's full-sized avatar

Sébastien Corbin SebCorbin

View GitHub Profile
@SebCorbin
SebCorbin / mymodule.php
Created May 12, 2012 22:53
Send pending approval mails to all users who have the 'administer users' permission
<?php
/**
* Implements hook_mail_alter().
*
* Also send pending approval mails to users who have
* the 'administer users' permission
*
* @see _user_mail_notify()
*/
@SebCorbin
SebCorbin / mymodule.js
Created March 6, 2012 21:53
Using highcharts with Drupal 7
(function ($) {
Drupal.behaviors.mymodule_charts = {
attach:function () {
if (Drupal.settings.mymodule.charts) {
for (var chart in Drupal.settings.mymodule.charts) {
new Highcharts.Chart(Drupal.settings.mymodule.charts[chart]);
}
}
}
};