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
@media (max-width:767px) { | |
#site-description { | |
display: none; | |
} | |
#secondary { | |
float: none !important; | |
} | |
#content { |
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_install(). | |
*/ | |
function menu_attributes_install() { | |
db_update('system') | |
->fields(array( | |
'weight' => 10, | |
)) | |
->condition('type', 'module') | |
->condition('name', 'menu_attributes') |
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 | |
/** | |
* @file | |
* Documentation for Menu Attributes API. | |
*/ | |
/** | |
* Alter the list of menu item attributes. | |
* |
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
/** | |
* Fetch an array of menu attributes. | |
*/ | |
function menu_attributes_get_menu_attribute_info() { | |
$attributes = module_invoke_all('menu_attribute_info'); | |
drupal_alter('menu_attribute_info', $attributes); | |
// Merge in defaul values. | |
foreach ($attributes as $attribute => &$info) { | |
$info += array( |
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
<style> | |
.left-arrow { | |
border-color: transparent black; | |
border-style: solid; | |
border-width: 20px 20px 20px 0px; | |
height: 0px; | |
width: 0px; | |
} | |
.right-arrow { |
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 | |
function rue89_assets_asset_view($asset, $view_mode = 'full') { | |
$asset->content = array(); | |
field_attach_prepare_view('asset', array($asset->aid => $asset), $view_mode); | |
entity_prepare_view('asset', array($asset->aid => $asset)); | |
$asset->content += field_attach_view('asset', $asset, $view_mode); | |
//module_invoke_all('asset_view', $asset, $view_mode); // yapp it triggers infinite loop bc of our view fn ) | |
module_invoke_all('entity_view', $asset, 'asset', $view_mode); |
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
// status | |
Drupal.behaviors.statusCheck = { | |
attach: function (context) { | |
$('#rue89-register-status-status:not(.status-check-processed)', context) | |
.each(function() { | |
var input = $(this).parents('#rue89-register-status').find('input'); | |
Drupal.statusCheck.status = ''; | |
Drupal.statusCheck.validated = false; | |
input | |
.focusout(function () { |
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
/** | |
* Implement hook_autocomplete_alter | |
* | |
*/ | |
function common_nodequeue_autocomplete() { | |
module_load_include('inc', 'nodequeue', 'includes/nodequeue.admin'); | |
$args = func_get_args(); | |
$test = array_shift($args); | |
if ($test != 'autocomplete') return drupal_json_output(array()); | |
$sqid = array_shift($args); |
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
$view = new view; | |
$view->name = 'list_nodes_by_date'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'list nodes by date'; | |
$view->core = 7; | |
$view->api_version = '3.0-alpha1'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
OlderNewer