Archive for Drupal

How to show number of items in Drupal Commerce shopping cart

you can show number of items  programmatically  in your Drupal Commerce shopping cart block.

You can use this code anywhere, be it in your custom module or theme.


How to Extend Drupal’s default Taxonomy terms overview table listing

You can add a new column to the default Drupal’s Taxonomy term listing page that provides a link to a DraggableViews (receives term ID from contextual filter) for sorting nodes.

This Post will show you briefly on how to make use of hook_theme().

See screenshot below for the final result.