SproutCMS

This is the code documentation for the SproutCMS project

function add()

Add a widget to the list of widgets for a specific area

Usage

void Widgets::add ( int $area_id , string $name , array $settings [, string $heading [, string $template ]] );

Arguments

  1. int $area_id
    The widget area to add the widget to
  2. string $name
    The name of the widget to add
  3. array $settings
    The widget settings to use
  4. string $heading = ''
    HTML H2 rendered front-end within widget
  5. string $template = ''
    Optional wrapping template name

Return value

  • void