SproutCMS

This is the code documentation for the SproutCMS project

function preloadWidgets()

Add some preloaded widgets, e.g. generated by a preview

Usage

void ContentReplace::preloadWidgets ( array $widgets , array $settings );

Arguments

  1. array $widgets
    Format to match $_POST['widgets'] on
           admin/edit/page/{id}
  2. array $settings
    Format to match $_POST['widget_settings']
           on admin/edit/page/{id}

Return value

  • void