Found a solution.
Below a patch that disallow the edit links to appear on other output as screen (print, rss, preview, so called build modes). Edit links only makes sense in screen mode (constant NODE_BUILD_NORMAL).
line 241:
// Content type settings.
$node = $vars['node'];
+ if (isset($node->build_mode) && !($node->build_mode===NODE_BUILD_NORMAL))
+ //NODE_BUILD_NORMAL is 0, and ('whatever' == 0) is TRUE, so we need a ===.
+ return FALSE;
$allowed_nodes = variable_get('block_edit_content_types',
I have not figured out yet how to contribute a patch, so hopefully, someone can add this.
Comments
Comment #1
joelstein commentedI think this makes a lot of sense. Committed to 6.x-1.x:
http://drupal.org/commitlog/commit/7690/fe5ebf5eff8ccbf46ace849689e19820...
A new release should be available shortly.
Comment #2
hanno commentedthanks for committing!