Theming the Pager
What is this nonsense?? To customize the pagination, I need to write a function interceptor and assemble an array there???? HOW IS THAT POSSIBLE??????
<br>
if ( $li_previous ) $items[] = array( 'class' => 'pager-previous', 'data' => $li_previous );
if ( $show_first && $li_first ) $items[] = array( 'class' => 'pager-first', 'data' => $li_first );
<br>
WHAT THE??? What if I want to change the entire structure??? Why do I even have to intercept functions and add my own arrays?? Couldn't it have been done simply? Just provide an array or object with fields, and then lay it out in the HTML file??? I'm completely shocked by DRUPAL. So I have to know what is being intercepted and what isn't. Moreover, I will also have to know which array to describe and for which moment of theming???