The ShareThis links should not show on pages meant for printing (i.e. output produced when clicking the Drupal 'print' module's print friendly link on nodes).

The attached patch adds a trivial function which checks if the page will be printed, and sharethis_nodeapi calls that function. The code could be simpler but I added the extra helper function in case there might be other modules that flag pages as print-only with something besides $node->print.

CommentFileSizeAuthor
sharethis-hide-on-print-pages.patch1.15 KBshark

Comments

jcnventura’s picture

Title: hide ShareThis link on print pages » Only display in full and teaser build/view modes (hide ShareThis link on print pages)
Status: Needs review » Needs work

This patch is no longer applicable. Sharethis should test for the build/view mode and should only display in full, and depending on configuration also the teaser mode.

avpaderno’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

I am closing this issue, since Drupal 6 isn't supported.