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
(function($) { | |
var fsas = []; | |
$('table td:not([style]) b').each( | |
function() { | |
var val = $(this).text(); | |
if (val.length == 3) { | |
fsas.push(val); | |
} | |
}); | |
var csv = fsas.sort().join(','); |
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
if ($('.chooser').length == 0) { | |
var pagearr = []; | |
var $pageSel = $('<select class="chooser">').hide(); | |
var pageMax = parseInt($('.pager').data('pages')); | |
var pageCur = parseInt($('.pager').data('currentpage')); | |
for(i=0;i<pageMax;++i) { | |
if (i < 5 || i >= (pageMax-5) || (i+1)%10 == 0 || ((i > pageCur-5) && (i < pageCur + 5))) { | |
pagearr.push({ val: i+1, text: (i+1)+" / "+pageMax }); | |
} | |
} |
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
jQuery('.page-admin-reports-fields .content table.sticky-table td:first-child').each(function() { | |
var enabledFields = ["field_subtitle", "field_text", "field_video", "title_field", "field_related_products", "field_resources", "field_product_categories", "architect_body", "body", "field_architect_specifications", "field_event_link", "field_event_location", "field_file", "field_hero_title", "field_link", "field_news_publication_title"]; | |
var url = 'http://' + window.location.host + '/admin/config/regional/entity_translation/translatable/' + jQuery(this).text() + '?destination=admin/reports/fields'; | |
var $sibling = jQuery(this).next('td'); | |
$sibling.text(''); | |
if (enabledFields.indexOf(jQuery(this).text()) != -1) { | |
var $link = jQuery('<a href="' + url + '" target="_blank">' + jQuery(this).text() + '</a>').css('font-weight','700'); | |
$link.appendTo($sibling); | |
} |
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
Feeds Paths: | |
Feeds Import -> import/%/ path definitions -> http://cgit.drupalcode.org/feeds/tree/feeds.module#n293 | |
Feeds UI -> admin/structure/feeds/% path definitions -> http://cgit.drupalcode.org/feeds/tree/feeds_ui/feeds_ui.module#n46 |
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
function east_penn_trucks_20141222_preprocess_page(&$vars, $hook) { | |
// Remove the Breadcrumb and Title from the homepage | |
if ($vars['is_front']) : | |
$vars['breadcrumb'] = ''; | |
$vars['title'] = ''; | |
endif; | |
} |
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_menu_alter(). | |
*/ | |
function MYTHEME_menu_alter(&$items) { | |
$items['user/%user']['title callback'] = 'MYTHEME_user_page_title'; | |
} | |
/** | |
* Custom Callback for setting page title. | |
*/ |
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
SELECT | |
gn.nid as "Gallery Nid", | |
gn.title as "Gallery Title", | |
a.dst as "Gallery Url", | |
gn.created as "Created", | |
u.uid as "User Uid", | |
u.name as "User Name", | |
#gi.nid as "Gallery Image Nid", | |
#gif.field_gallery_image_fid as "Gallery Image Fid", | |
GROUP_CONCAT(CONCAT("http://www.shepnetgs.org/", f.filepath)) as "Gallery Image Filepath" |
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
{ "commerce_tax_rate_pa_sales_tax" : { | |
"LABEL" : "Calculate PA Sales Tax", | |
"PLUGIN" : "rule", | |
"OWNER" : "rules", | |
"TAGS" : [ "Commerce Tax", "sales_tax" ], | |
"REQUIRES" : [ "commerce_order", "rules", "commerce_tax" ], | |
"USES VARIABLES" : { "commerce_line_item" : { "label" : "Line item", "type" : "commerce_line_item" } }, | |
"IF" : [ | |
{ "commerce_order_compare_address" : { | |
"commerce_order" : [ "commerce-line-item:order" ], |
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
# Check for number of urls with 200 statuses | |
grep 200 out.txt | wc -l |
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_install(). | |
*/ | |
function sis_site_install() { | |
// Do some things on install, like setting the module weight. | |
// Setup the Adminimal theme | |
$themes = list_themes(); |
OlderNewer