Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When I use the module I now and then get the following message in the log:
Undefined variable: block in print_block_view()
The reason is that if the $block variable is not defined if something else is calling hook_block_view(). The fix is easy:
--- print.module.orig 2013-06-24 09:37:53.333706000 +0200
+++ print.module 2013-06-24 09:34:41.894069000 +0200
@@ -263,6 +263,7 @@
* Implements hook_block_view().
*/
function print_block_view($delta = '') {
+ $block = array();
switch ($delta) {
case 'print-links':
$nid = preg_replace('!^node/!', '', $_GET['q']);
BR
/Thomas
Comments
Comment #1
jcnventura CreditAttribution: jcnventura commentedThanks for the fix.
Pushed to git.