For for node body field use below code: /**
* Override or insert variables into the node template.
*/
function template_preprocess_node(&$variables) { /* Add nofollow */...
Read more →
Here's how to adding new variable for the Author Pane function template_preprocess_author_pane(&$variables) { $variables['user_follow'] = '';
$uid = $variables['account']->uid;
$name1...
Read more →
A few days ago I releasing new module to rewrite and redirect the comment permalink to use a fragment for SEO purposes. The default Drupal 7 comment permalink has the following format,...
Read more →
Recently, I need the following features for one of client Drupal 7 site: There is one content type that requires option to change the layout just by using checkbox, what is needed is an inline CSS...
Read more →
We can embed a view created by Views module inside a node in Drupal 7 with just some short code. Here is the code: <?php
$view =...
Read more →
Drupal has an amazing and clean code. Support of social networking, multimedia, SSL, event calenders, document management, blogging, forums, internationalization, user management and permission...
Read more →
Maybe sometimes we want a custom style for our Drupal login page, different with the existing default login page in Drupal 7, whether it's for a personal project or client requests. Here is the...
Read more →
There are various ways to create a responsive Drupal theme, one of them is using template_preprocess_html() function in template.php. First create template.php if your theme do not already have it....
Read more →
Creating custom user registration form sometimes can be a little tricky, but lets try to create a custom registration form in Drupal 7 with just a few steps. First we add a few lines of codes to...
Read more →
Some time ago I need to creating a Webform where visitors need to fill in the data required before they can download a specific file. So the order is as follows: Send data to the server such as name,...
Read more →