Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Ajouter les méta spécifiques aux Devices Apples
* */
function THEME_NAME_preprocess_html(&$variables) {
//regular apple-touch-icon
$apple = array(
'#tag' => 'link', // The #tag is the html tag - <link />
'#attributes' => array( // Set up an array of attributes inside the tag
'rel' => 'apple-touch-icon',
@jlavialle
jlavialle / weight_module
Created August 27, 2013 12:19
Weight for module
/**
* Implements hook_enable()
* @link https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_enable/7
*/
function cirpack_extranet_user_account_enable() {
db_update('system')
->fields(array('weight' => 10))
->condition('type', 'module')
->condition('name', 'cirpack_extranet_user_account')
->execute();