Skip to content

Instantly share code, notes, and snippets.

@blambi
blambi / gist:2000117
Created March 8, 2012 10:12
fun fun fun
foreach($facets as $gid => $value)
{
usort($facets[$gid]['items'],
function($a, $b) {
return strcmp($a['title'], $b['title']);
}
);
$facets[$gid]['items'] = array_map( function($x) { return $x['link']; }, $facets[$gid]['items']);
}
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC43QhPnhjlxGqyWwLpLBMgxx86TKxlPYGo9QQTPC78n5Uiy9p4H0XRlaY6SlNQIx/DcTziz7H/vHN5hLr0cnueWuGdLDygZQaiuAZvlgnjBhQIziaYcjV8mR8752YPPam0/IpSRAcaNLjqDyjjWnVQ0BYVOpgZpDKIzEh/RUW7gMvgcm6PBSqtBeV+K2l1KhI2XQIkb1787PK+2hLAovReavZu+T2oDd2wgirpW2y6t35TBiB1ZsetqH5bhFDFa3SuYtUvPEZ2YG6R0EpDgEu+tHal5vC2Xvko056rZnOrdHLtX9FPw4F6YzZZIaTA2KrQ6XurrlwhnmReZwUNyD/r patrik@lembke
@blambi
blambi / drupal-core-system-add-machinename-column.patch
Created February 24, 2012 12:33
[Drupal 7] Add a machinename column to the modules listing
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 7ed232a..9a71679 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -797,6 +797,8 @@ function system_modules($form, $form_state = array()) {
foreach ($visible_files as $filename => $module) {
$extra = array();
$extra['enabled'] = (bool) $module->status;
+ $extra['machinename'] = $module->name;
+
diff --git a/drupal-org.make b/drupal-org.make
index d4304a1..86fdcbe 100644
--- a/drupal-org.make
+++ b/drupal-org.make
@@ -28,7 +28,7 @@ projects[dynamic_formatters][version] = 2.0-alpha2
projects[field_group][version] = 1.1
projects[features][version] = 1.0-beta6
projects[strongarm][version] = 2.0-beta5
-projects[views][version] = 3.1
+projects[views][version] = 3.3