1 icon.inc icon_allowed_styles()

Helper function to get list of allowed/known styles.

Return value

array: An array of approved styles, keyed by the style machine name.

File

core/includes/icon.inc, line 524
Provides the Backdrop API for placing icons.

Code

function icon_allowed_styles() {
  $allowed_styles = array(
    'fill' => 'Fill',
    'outline' => 'Outline (or other)',
    'thin' => 'Thin',
    'light' => 'Light',
    'bold' => 'Bold',
    'duotone' => 'Duotone'
  );

  backdrop_alter('icon_allowed_styles', $allowed_styles);

  return $allowed_styles;
}