function _ooe_page_current_posts

7.x-1.x ooe.module _ooe_page_current_posts()

Custom page callback function, declared in ooe_menu().

Delegates to OoeBridge::page_current_posts(), which uses a CurrentPosts project.

Adapted from the Current Posts example: Theming the page

The OOE version encapsulates the database query and the page construction in a CurrentPostsHelper used by a CurrentPosts (a special IProject implementation).

File

./ooe.module, line 275
An educational tutorial module that demonstrates an Object-Oriented bridge between Drupal7 core's contributed module API and a fully Object-Oriented space. OOE stands for Object-Oriented Examples.

Code

function _ooe_page_current_posts() {
  return ooe()->page_current_posts();
  // TODO public/friend?
}