Topic: Can we use the set_icon function in db_pager_view.inc as well

from db_pager_view.inc file, we have a function navi_button which actually passes the img tag to get icons like this.

function navi_button($name, $value, $enabled=true, $icon = false) {
    global $path_to_root;
      return "<button ". ($enabled ? '':'disabled')
          ." class=\"navibutton \" type=\"submit\""
        ." name=\"$name\"  id=\"$name\" value=\"$value\">"
          .($icon ? "<img src='$path_to_root/themes/".user_theme()."/images/".$icon."'>":'')
        ."<span>$value</span></button>\n";
}

Change it to like this.

function navi_button($name, $value, $enabled=true, $icon = false) {
    global $path_to_root;
      return "<button ". ($enabled ? '':'disabled')
          ." class=\"navibutton \" type=\"submit\""
        ." name=\"$name\"  id=\"$name\" value=\"$value\">"
          .($icon ? set_icon($icon):'')
        ."<span>$value</span></button>\n";
}
Subscription service based on FA
HRM CRM POS batch Themes