Red Crackle Blog

How to override theme functions in Drupal 7

By neerav.mehta Mon, 12/09/2013 - 19:44 Comments

Before overriding theme functions, let us understand the concept of theme function.

In Drupal, a theme function is a PHP function that is used to output the HTML of any Drupal object. These functions are prefixed with theme_. All the functions that produce HTML are themeable and are invoked using theme() rather than being directly called.

We can override theme functions in template.php.

Using Menu Attributes in Drupal 7

By neerav.mehta Mon, 12/09/2013 - 19:41 Comments

Menu attributes allow you to specify some additional attributes for the menu item such as Title, ID, Name, Relationship, Classes, Style, Target and Access Key. 

Using views filter in Drupal 7

By neerav.mehta Mon, 12/09/2013 - 19:40 Comments

Filters are used to specify selection criteria to select required records from a table. Therefore, using filters in views can help us reduce the result set to the required amount of data. We can add multiple filter criteria. In Drupal 6, all the filters are ANDed together, but in Drupal 7, we have the option to add the criteria as AND and OR.

SASS - Syntactically Awesome Stylesheets

By neerav.mehta Mon, 12/09/2013 - 19:37 Comments

Sass is an extension of CSS3.  It is translated to well-formatted, standard CSS using the command line tool or a web-framework plugin. Most commonly used syntax of sass is "scss". SCSS files use the extension ".scss". The other syntax is "sass". We will talk about scss here.

Advantages of scss over css

Ready to get Started?