Projet

Général

Profil

Révision 6b24a280

Ajouté par Assos Assos il y a presque 4 ans

-a

Voir les différences:

drupal7/modules/color/color.module
734 734
 * Converts a hex color into an RGB triplet.
735 735
 */
736 736
function _color_unpack($hex, $normalize = FALSE) {
737
  if (strlen($hex) == 4) {
738
    $hex = $hex[1] . $hex[1] . $hex[2] . $hex[2] . $hex[3] . $hex[3];
737
  $hex = substr($hex, 1);
738
  if (strlen($hex) == 3) {
739
    $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2];
739 740
  }
740 741
  $c = hexdec($hex);
741 742
  for ($i = 16; $i >= 0; $i -= 8) {

Formats disponibles : Unified diff