color_get_info

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 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 122

<?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;
  }
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen