Skip to content

Instantly share code, notes, and snippets.

View mkorostoff's full-sized avatar

Jersey Len mkorostoff

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4w8fMwNv/px/cTd0v3WuYl2Ho3B9wM9iBU2d/J7hFDpI5JuXUgtvE9Qm6qT5opltXl7GSTSEXL2EGk29n/yzxu6+oEUQ36FDpJDzZ+GtZ9dzE86Fr/yqURfjglRQmunsRjV2PU4uussVvz94/oNULR8F1l60tbTqTqhA1CE4Yjj8q5b6/1ZeGG3kody+kkIaPzgQCa8Z4PgRK973YN8H0tvq6EkOW8euwJDDTNg9+ZU9qOaRs2F/3sESPAiscaZTknxLS9Xa//C4ZeSbGlV5fGbeNWNgGFd4G7xIWPc3XSvEKB3D6hsBXCkrjsHUAoV+zbTenx7v1NVlzlp9BJoZDQ== [email protected]
<?php
//adds the rel attribute to lightbox2 links in order to fire the proper javascript
if (preg_match("/node\/\d*\/lightbox2/", $variables['path'])) {
//Looks up node type with views, much less expensive than node_load():
$type = get_view_results_with_arguments('rsn_articles', 'panel_pane_8', array(arg(1)));
$type = ($type[0]->node_type);
/*We'll transform these links everywhere except the media_gallery node page
* We exclude the media_gallery page because, on those pages links of the format
* <a href="#slide-2"> fulfill the if() condition above
<?php
function rsn_base_link(&$variables) {
//adds the rel attribute to lightbox2 links in order to fire the proper javascript
if (preg_match("/node\/\d*\/lightbox2/", $variables['path'])) {
//Looks up node type with views, much less expensive than node_load():
$type = get_view_results_with_arguments('rsn_articles', 'panel_pane_8', array(arg(1)));
$type = ($type[0]->node_type);
/*We'll transform these links everywhere except the media_gallery node page.
* We exclude the media_gallery page because, on those pages links of the format
div.panels-section-column a[href$="/header/views_panes/rsn_views_placeholder-panel_pane_7"] {
font-size: 20px !important;
}
/cygdrive/c/xampp/htdocs/nbcsports/docroot/sites/rsn (merger-aug-09-2012)
matt@blink8: drush updb
The following updates are pending:
rsn module :
Enable RSN TV Listing and video importer modules.
Enable menu attributes module
Enable RSN News Ticker module
Enable RSN Content Lists Context Provider module
Reverts features rsn_homepage, rsn_footer_menu, nbcsports_article_content_type, rsn_placehoders
: drush cc all
WD menu: Exception: "0" Status: Request failed: A connection attempt [error]
failed because the connected party did not properly respond after a
period of time, or established connection failed because connected
host has failed to respond. in
DrupalApacheSolrService->checkResponse() (line 360 of
C:\xampp\htdocs\nbcsports\docroot\profiles\nbcsports\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php).
'all' cache was cleared in c:/xampp/htdocs/nbcsports/docroot#rsn [success]
@mkorostoff
mkorostoff / vbo.php
Created September 7, 2012 15:06
View Bulk Opp to add nodes to queues
$view = new view;
$view->name = 'views_bulk';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Views Bulk';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$mini = new stdClass();
$mini->disabled = FALSE;
$mini->api_version = 1;
$mini->name = 'mega_menu_capitals'; /* Change this value */
$mini->category = '';
$mini->admin_title = 'Mega Menu: Capitals'; /* This one too */
$mini->admin_description = '';
$mini->requiredcontexts = array();
$mini->contexts = array();
$mini->relationships = array();
: git diff george/my-new-branch --stat
.../gigya/gigya_comments/gigya_comments.module | 25 +-
.../csn_houston_main_menu.features.inc | 192 ++--
.../csn_houston_main_menu.features.menu_custom.inc | 87 +-
.../csn_houston_main_menu.features.menu_links.inc | 896 +++++++------------
.../csn_houston_main_menu.info | 122 ++-
.../csn_houston_main_menu.panels_default.inc | 928 ++++++--------------
.../csn_houston_main_menu.views_default.inc | 127 +--
.../modules/custom/nbcsports_migrate/article.inc | 19 +-
.../nbcsports/modules/custom/rsn/rsn.install | 20 +
function csn_houston_core_update_7001() {
variable_set('rsn_follow_bar_api_key', '2_0TqLS-kxDBlZLg4oGwYVgfuS20JKVamhsqmCTqo6ZPCzr6mXs_6dN5VjSh7mnAUm');
variable_set('rsn_follow_bar_icon_size', 22);
variable_set('rsn_follow_bar_facebook_title', 'Like CSN Houston on Facebook');
variable_set('rsn_follow_bar_facebook_account', 'csnwashington');
variable_set('rsn_follow_bar_twitter_title', 'Follow CSN Houston, team insiders and others on Twitter');
variable_set('rsn_follow_bar_twitter_users', 'CSNhouston,SportsTalkCSN,chickatCSN,kjohnsoncsn,'
. 'Rich_Tandler,ChuckGormleyCSN,MayHockeyCSN,MarkZuckerman,michaeljenk,RobCarlin,JenXperience');
variable_set('rsn_follow_bar_rss_title', 'CSN Houston RSS Feeds');
variable_set('rsn_follow_bar_rss_url', 'rss_feeds');