color_get_info

Versions
5 – 6
color_get_info($theme)

Retrieve the color.module info for a particular theme.

▾ 3 functions call color_get_info()

color_form_alter in modules/color/color.module
Implementation of hook_form_alter().
color_get_palette in modules/color/color.module
Helper function to retrieve the color palette for a particular theme.
color_scheme_form in modules/color/color.module
Form callback. Returns the configuration form.

Code

modules/color/color.module, line 121

<?php
function color_get_info($theme) {
  $path = drupal_get_path('theme', $theme);
  $file = $path .'/color/color.inc';
  if ($path && file_exists($file)) {
    include $file;
    return $info;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.