SproutCMS

This is the code documentation for the SproutCMS project

function lookupWidgets()

Usage

array ContentReplace::lookupWidgets ( string $widget_table , int $widget_record , array $embed_keys );

Arguments

  1. string $widget_table
    The host table of the widgets, e.g. 'page'
  2. int $widget_record
    The record id
  3. array $embed_keys
    The embed keys

Return value

  • array
    Keys are the widget reference codes, values are arrays
            with keys and values matching the DB fields: 'type' (string),
            'settings' (array), and 'embed_key' (string)