function color_get_info

Same name in other branches
  1. 9 core/modules/color/color.module \color_get_info()
  2. 8.9.x core/modules/color/color.module \color_get_info()

Retrieves the Color module information for a particular theme.

3 calls to color_get_info()
color_form_system_theme_settings_alter in modules/color/color.module
Implements hook_form_FORM_ID_alter().
color_get_palette in modules/color/color.module
Retrieves the color palette for a particular theme.
color_scheme_form in modules/color/color.module
Form constructor for the color configuration form for a particular theme.

File

modules/color/color.module, line 133

Code

function color_get_info($theme) {
    static $theme_info = array();
    if (isset($theme_info[$theme])) {
        return $theme_info[$theme];
    }
    $path = drupal_get_path('theme', $theme);
    $file = DRUPAL_ROOT . '/' . $path . '/color/color.inc';
    if ($path && file_exists($file)) {
        include $file;
        $theme_info[$theme] = $info;
        return $info;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.