Fix the "Read more" link in Drupal 7

Drupal 7 has limitations that can be fairly funny, the "Read more" link always appears in the "Teaser" although the "Teaser" content is already the entire contents of the article, this problem does not exist in Drupal 6.

To fix this I simply use the template.php and make the function as follows:

function template_preprocess_node(&$variables) {

  $node = $variables['node'];
  // Check first the "body field" exists or not.
  $field = field_get_items('node', $node, 'body');

  // If available do execution ..  
    $body = $node->body['und'][0]['safe_value'];
    if ($variables['content']['body'][0]['#markup'] == $body){

  // And if not available ..
    // Do nothing ..


Note: Replace the word template on template_preprocess_node with the name of your theme.

At least this solution can be used for a while and waiting for the problem is fixed in Drupal 7.

Danland development in 2012

Almost one year I was busy with my office works and my personal business so that the developments of my project at such as the Danland theme is very slow. And lately I deliberately took the time to add new features to Danland, the Color Module support.

With this new feature you can change the color for almost all of the theme parts, such as the body background, block color, text and link color, or any other theme parts.

Note: this feature will only available in Danland 7.x.