You are here

function get_page_item_count in Recipe 6

1 call to get_page_item_count()
recipe_pdf35_export_single in plugins/recipe_pdf35.module

File

plugins/recipe_pdf35.module, line 216
recipe_pdf35.module - Enables exporting of 3x5" cards in pdf format. This is incredibly rudimentary at this point. 1 and only 1 card and if you go over, the text is lost.

Code

function get_page_item_count($page) {

  // Count up the columns + header and footer.
  return count($page['column_0']) + count($page['column_1']) + count($page['column_2']) + count($page['header']) + count($page['footer']);
}