How to give image instead of text in pager? I need to change the text in to image in pager.

For example:

&lt;&lt; First &lt; Previous  4 5 6 7  Next &gt; Last &gt;&gt;


Now instead of the above i need to print as below:

&lt;&lt; &lt;  4 5 6 7  &gt; &gt;&gt;


Note: Consider the less than and greater than symbol as images.

Here is the syntax :

theme_pager_next($text, $limit, $element = 0, $parameters = array())


Here is my code :

$li_next = theme('pager_next', theme_image(drupal_get_path("theme", "fluid") . "/images/text.gif"));


My output is as follows for the above code :

&lt;img src="/sites/all/themes/fluid/images/text.gif" alt="" title="" width="7" height="13" /&gt;


But my desired output is to print the image which is in the image tag.

Any help will be thankful and grateful.

Thanks in advance.
See How to change text-links to image links in the pager.
By using the theme_image() function Drupal should nicely format the &lt;img&gt; tag, and output it to your theme. Well, this works, but unfortunately somewhere in this theme_pager() process a l() is telling Drupal to only output plain text here.

The trick here is not to rewrite your whole pager functions. Have a look at theme_pager_link(); this function is building all the links that are used by the pager functions. When you look closer to the l() formatting the output is done using the following code:

return l($text, $_GET['q'], array('attributes' =&gt; $attributes, 'query' =&gt; count($query) ? implode('&amp;', $query) : NULL));


You'll see the options aren't setting the HTML output. So I placed the whole function in my template.php (changing theme_pager_link() to `landrush_pager_lin()k) with a different output:

return l($text, $_GET['q'], array('attributes' =&gt; $attributes, 'html' =&gt; TRUE, 'query' =&gt; count($query) ? implode('&amp;', $query) : NULL));


Note 'html' =&gt; TRUE.

Now l() is allowing me to print HTML tags (images!) within the pager function.