You are here

function colors_get_module_colors in Colors 7

Gets all the color configurations of a given module.

Parameters

$module: The name of the given module.

Return value

Color configuration for the selectors created by the given module.

1 call to colors_get_module_colors()
colors_create_css in ./colors.module
Retrieves or generates a CSS file with a given module's selector.

File

./colors.module, line 195
Provides an API to match selectors with a color configuration.

Code

function colors_get_module_colors($module) {
  return array_map('unserialize', db_select('colors', 'c')
    ->fields('c', array(
    'selector',
    'color',
  ))
    ->condition('module', $module)
    ->execute()
    ->fetchAllKeyed());
}