I've unchecked "Include node links for "add comment", "read more" etc.", but "read more" is still displayed.

Comments

jdanthinne’s picture

Status: Active » Needs review

Not very nice I think, but this is working if you replace

function nodeblock_preprocess_node(&$variables) {
  if (isset($variables['node']->nodeblock)) {
    array_unshift($variables['theme_hook_suggestions'], 'node__nodeblock__default');
  }
}

with

function nodeblock_preprocess_node(&$variables) {
  if (isset($variables['node']->nodeblock)) {
    $defaults = variable_get('nodeblock_block_' . $variables['elements']['#block']->delta, array('teaser' => 0, 'links' => 1));
    if (!$defaults['links']) unset($variables['content']['links']);
    array_unshift($variables['theme_hook_suggestions'], 'node__nodeblock__default');
  }
}
michaellander’s picture

Newest release should certainly cover this if previous ones didn't. I'll do more testing but I'm marking as fixed for now.

michaellander’s picture

Status: Needs review » Closed (fixed)