This file contains 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_preprocess_html(). | |
*/ | |
function mytheme_preprocess_html(&$variables) { | |
// IE EDGE SUPPORT | |
if (drupal_get_http_header('X-UA-Compatible') === NULL) { | |
drupal_add_http_header('X-UA-Compatible', 'IE=edge,chrome=1'); | |
} |
This file contains 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 | |
<?php | |
/** | |
* @file | |
* Includes preproces of html | |
*/ | |
/** | |
* Implements hook_preprocess_html(). | |
*/ |
This file contains 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 | |
$view = new view(); | |
$view->name = 'commerce_line_item_table'; | |
$view->description = 'Display a set of line items in a table.'; | |
$view->tag = 'commerce'; | |
$view->base_table = 'commerce_line_item'; | |
$view->human_name = 'Line items'; | |
$view->core = 0; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
This file contains 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
dependencies[] = ctools | |
; Views Handlers | |
files[] = views/mymodule_handler_handlername.inc |
This file contains 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 | |
// Voila! $submitted now has date and tags. | |
?> | |
<p class="submitted"><?php print $submitted; ?></p> |
This file contains 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
/** | |
* Implements hook_ctools_plugin_pre_alter(). | |
*/ | |
function module_ctools_plugin_pre_alter(&$plugin, &$info) { | |
// Rename "Kalacustomize" pane style text label to "Custom Pane Style" | |
if ($plugin['name'] == 'kalacustomize') { | |
$plugin['title'] = t('Custom Pane Style'); | |
} | |
} |
This file contains 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_commerce_checkout_pane_info(). | |
*/ | |
function module_commerce_checkout_pane_info() { | |
$panes['module_salesrep'] = array( | |
'title' => t('Sales Representative'), | |
'base' => 'module_salesrep', |
This file contains 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_element_info_alter(). | |
*/ | |
function mymodule_element_info_alter(&$type) { | |
if ($type['media']) { | |
$type['media']['#attached']['js'][] = array( | |
'data' => array( | |
'media-file-edit' => array( | |
'modalSize' => array( |
OlderNewer