You are here

function styleguide_palette_swatch_load_multiple in Style Guide 7

Loads all color swatches for a theme.

Parameters

string $theme: The theme machine name

Return value

array An array of swatches.

2 calls to styleguide_palette_swatch_load_multiple()
styleguide_palette in styleguide_palette/styleguide_palette.module
Returns the sanitized swatches for a given theme.
styleguide_palette_form in styleguide_palette/styleguide_palette.admin.inc
Form constructor for the style guide swatch form.

File

styleguide_palette/styleguide_palette.module, line 133
Stores and displays color palettes and swatches.

Code

function styleguide_palette_swatch_load_multiple($theme) {
  return db_select('styleguide_palette_swatch', 's')
    ->fields('s')
    ->condition('theme', $theme)
    ->execute()
    ->fetchAllAssoc('id');
}