This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core = 7.x | |
api = 2 | |
; Drupal core | |
projects[drupal][type] = "core" | |
projects[drupal][version] = "7.14" | |
projects[drupal][patch][] = http://drupal.org/files/Drupal-node-grants-saved-too-late-1146244-38.patch | |
; Install profile | |
projects[unimel_psych][type] = "profile" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$formatter = new stdClass(); | |
$formatter->disabled = FALSE; /* Edit this to true to make a default formatter disabled initially */ | |
$formatter->api_version = 2; | |
$formatter->name = 'unimel_download_small'; | |
$formatter->label = 'unimel download small'; | |
$formatter->description = 'Styles a file field that users can download as per the Unimelb branding.'; | |
$formatter->mode = 'php'; | |
$formatter->field_types = 'file'; | |
$formatter->code = 'foreach ($variables[\'#items\'] as $item) { | |
$filepath = file_create_url($item[\'uri\']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$formatter = new stdClass(); | |
$formatter->disabled = FALSE; /* Edit this to true to make a default formatter disabled initially */ | |
$formatter->api_version = 2; | |
$formatter->name = 'unimel_download_large'; | |
$formatter->label = 'unimel download large'; | |
$formatter->description = 'Styles a file field that users can download as per the Unimelb branding.'; | |
$formatter->mode = 'php'; | |
$formatter->field_types = 'file'; | |
$formatter->code = 'foreach ($variables[\'#items\'] as $item) { | |
$filepath = file_create_url($item[\'uri\']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mymodule_menu_alter(&$items) { | |
if (!empty($items['node/%/webform'])) { | |
unset($items['node/%/webform']); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core = 7.x | |
api = 2 | |
; Drupal core | |
projects[drupal][type] = "core" | |
projects[drupal][version] = "7.14" | |
projects[drupal][patch][] = http://drupal.org/files/Drupal-node-grants-saved-too-late-1146244-38.patch | |
; Install profile | |
projects[unimel_psych][type] = "profile" |