I got the following error when I want to use the theme_datatable() function from my module:

Fatal error: Cannot unset string offsets in /opt/drupal7/sites/d7.sandbox/modules/datatables/datatables.module on line 153

There are other problems in this function:

return theme('table', $header, $rows, $attributes, $caption);

The theme functions accepts only a $variables array now in Drupal 7.

CommentFileSizeAuthor
#1 datatables-1029592.patch1.71 KBdtengeri

Comments

dtengeri’s picture

StatusFileSize
new1.71 KB

Attached a patch which will fix this problem.

duellj’s picture

Status: Active » Fixed

Thanks for the patch! Commited to 7.x. (sorry for the delay)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • duellj committed 5200548 on 7.x-1.x, 7.x-2.x
    Issue #1029592 by dtengeri, duellj: Fixes theme_datatable errors