Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. /**
  2.  * Implements hook_theme_registry_alter().
  3.  */
  4. function commerce_kickstart_product_ui_theme_registry_alter(&$theme_registry) {
  5.   $path = drupal_get_path('module', 'commerce_kickstart_product_ui') . '/theme';
  6.   // Only alter the template if it is not already overridden in a theme
  7.   // Remove commerce product label.
  8.   if (strpos($theme_registry['commerce_product_title']['theme path'], "themes/") == FALSE) {
  9.     $theme_registry['commerce_product_title']['theme path'] = $path;
  10.   }
  11.   // Remove cart block total label & add cart link on item.
  12.   if (strpos($theme_registry['commerce_line_item_summary']['theme path'], "themes/") == FALSE) {
  13.     $theme_registry['commerce_line_item_summary']['theme path'] = $path;
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement