SproutCMS

This is the code documentation for the SproutCMS project

function categorySelection()

Outputs an interface for selecting multiple categories

Usage

void Admin::categorySelection ( The $field , An $data , An $selected );

Arguments

  1. The $field
    field name
  2. An $data
    array of key-value pairs, with the keys being the id of the category, and the value being the name.
  3. An $selected
    array of selected category ids.

Return value

  • void