SproutCMS

This is the code documentation for the SproutCMS project

function adminTile()

Register a "tile", which is shown in the modules menu in the admin

A list of available icons can be found in the file sprout/media/fonts/iconfont/demo.html

Usage

void Register::adminTile ( string $name , string $icon , string $text , array $controllers [, int $sort_order ] );

Arguments

  1. string $name
    The name (title) of the tile
  2. string $icon
    The icon class, sans the 'icon-' part. Examples: 'list', 'grid', 'home', etc.
  3. string $text
    Explanation text. Plaintext.
  4. array $controllers
    Controllers to show as links, in format 'shorthand' => 'label'
  5. int $sort_order = 10
    Tiles are sorted by the sort order, then by the name alphabetically. Lower = earlier.

Return value

  • void