function commerceguys_marketplace_preprocess_page in Commerce Guys Marketplace 7
Process variables for page.tpl.php
Adds the marketplace css to all marketplace pages, and removes the page title and breadcrumb since they're not needed.
File
- ./
commerceguys_marketplace.module, line 102 - Connector module for http://marketplace.commerceguys.com
Code
function commerceguys_marketplace_preprocess_page(&$variables) {
$item = menu_get_item();
if (strpos($item['path'], 'commerceguys-marketplace') === 0) {
drupal_add_css(drupal_get_path('module', 'commerceguys_marketplace') . '/theme/commerceguys-marketplace.css');
drupal_add_library('commerceguys_marketplace', 'bxslider');
drupal_add_js(drupal_get_path('module', 'commerceguys_marketplace') . '/theme/js/commerceguys_marketplace_slideshow.js');
$variables['title'] = '';
drupal_set_breadcrumb(array());
}
}