SproutCMS

This is the code documentation for the SproutCMS project

function getContentWidgets()

Gets the embedded widgets (i.e. content blocks) for a page

Usage

array Page::getContentWidgets ( int $rev_id , string $include );

Arguments

  1. int $rev_id
    Page revision ID from database (page_revisions.id)
  2. string $include
    'active' to only include active widgets,
           'all' to include disabled widgets as well

Return value

  • array
    Rows extracted from the database