The markup for the basket block content and ajax replacement content should be generated by a theme function. This would allow themers to modify the markup using theme overrides if necessary.

Comments

mangy.fox’s picture

In the attached patch I have added a theme function to generate the basket link markup, taking the order data array as a variable. This theme function is used in a render array for the block content, and to generate the ajax replacement markup.

I have left in a modified version of the original output function, to prevent issues for anyone who may be calling that function from elsewhere.

marty.true’s picture

Status: Active » Needs review