Hi Merlin (or those of equal capabilities),
I'm trying to theme my pager based on this method ::
How to change text-links to image links in the pager
http://drupal.org/node/318565
I overrode my theme functions with the default drupal ones and made the two changes suggested in this article (enabling HTML in the pager links function) and changing t('››')) to theme('image', 'sites/all/themes/landrush/img/vorige.jpg', $alt = 'Vorige', $parameters, FALSE)
I didn't use the "whole" code from the article mentioned above, only those two changes... and I cleared my cache...
The change actually works, my image shows up in place of the little ">>" and everything, only problem is I also get the dreaded "warning: preg_match() expects parameter 2 to be string, array given in /home/nonficti/public_html/includes/bootstrap.inc on line 737." error...
any ideas?
Comments
Comment #1
virtualdrupal commentedUpdating, I think this would be more of a support request...
Comment #2
virtualdrupal commentedAlso I should mention that I tried doing the change on the full pager, and the mini pager, both times the ">>" is successfully replaced by my image, but both ways also produce the same error.
Comment #3
merlinofchaos commentedI dunno. This isn't Views related, really, though I did go ahead and spend a couple of minutes to at least see what the actual error is. And that is that check_plain() is receiving an array somewhere when it should be receiving a string. This might indicate your output to l() is incorrect. I would, if I were you, place a check in bootstrap.inc for an array and if it sees one, dump a debug_backtrace() to see precisely what line the error is coming from. That should help you trace down where your mistake is.
Comment #4
virtualdrupal commentedThanks for the suggestion, once I trace back the error I'll post the culprit for the record