SproutCMS

This is the code documentation for the SproutCMS project

function embedWidgets()

Replace embed code with the actual widgets.

Embed code is in the format ((WIDGET code))

Usage

string ContentReplace::embedWidgets ( string $text , string $widget_table , int $widget_record );

Arguments

  1. string $text
    The text which contains the widget embed codes
  2. string $widget_table
    The host table of the widgets, e.g. 'page'
  3. int $widget_record
    The record id

Return value

  • string
    $text