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
<?php | |
// Social share links | |
$links = array(); | |
$share_url = url('node/'.$node->nid, array('absolute' => TRUE)); | |
$links['facebook'] = array( | |
'href' => 'https://www.facebook.com/sharer/sharer.php?u='.$share_url, | |
'title' => t("Facebook"), | |
'attributes' => array( | |
'data-popup-width' => 700, |
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
libraries[ckeditor][download][type]= "get" | |
libraries[ckeditor][directory_name] = "ckeditor" | |
libraries[ckeditor][destination] = "libraries" | |
; Le lien suivant peut expirer, voir http://drupal.org/node/1943098#comment-7234212 | |
libraries[ckeditor][download][url] = "http://ckeditor.com/online-builder/releases/minified/4.1.2/moono/4.1.2/ckeditor_4.1.2_b252dac9fef6.zip" | |
; sinon le zip normal | |
libraries[ckeditor][download][url] = "http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.2/ckeditor_4.2_standard.zip" | |
; Get TinyMCE library, and its French translation (to be used with WYSIWYG module). |
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
# Git autocompletion | |
source ~/.git-completion.sh | |
# prompt | |
source ~/.git-prompt.sh | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "(%s)")$ ' |
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
<?php | |
/** | |
* Implements hook_field_formatter_info(). | |
*/ | |
function mymodule_field_formatter_info() { | |
return array( | |
'mymodule_link' => array( | |
'label' => 'Link for ingenie site/email', | |
'field types' => array('text'), |
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
<?php | |
function my_module_my_tabbed_block() { | |
// Block title | |
$block['subject'] = t("My tabbed block"); | |
// Tabs. | |
$block['nav'] = array( | |
'#theme' => 'item_list', |
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
# Ignore configuration files that may contain sensitive information. | |
sites/*/*settings*.php | |
# Ignore paths that contain generated content. | |
cache/ | |
files/ | |
sites/*/files | |
sites/*/private | |
# Drupal develepment modules |
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
<?php | |
/** | |
* Implements hook_drush_command(). | |
*/ | |
function custom_local_drush_command() { | |
$items['files-fix-permissions'] = array( | |
'description' => 'Fix file permissions', | |
'aliases' => array('ffp'), | |
); |
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
<?php | |
/** | |
* Implements of hook_query_node_access_alter(). | |
*/ | |
function MYMODULE_query_node_access_alter(QueryAlterableInterface $query) { | |
$search = FALSE; | |
$node = FALSE; | |
foreach ($query->getTables() as $alias => $table) { |
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
/** | |
* Touch events | |
*/ | |
wrapper.touch = {} | |
wrapper.get(0).ontouchstart = function(e) { | |
// Store start position | |
wrapper.touch.x = e.touches[0].clientX; | |
}; |
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
<?php | |
/** | |
* Implements of hook_query_node_access_alter(). | |
*/ | |
function MYMODULE_query_node_access_alter(QueryAlterableInterface $query) { | |
$search = FALSE; | |
$node = FALSE; | |
foreach ($query->getTables() as $alias => $table) { |