Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

views_css_safe

Definition

views_css_safe($string)
contributions/views/views.module, line 1091

Description

Prepare the specified string for use as a CSS identifier.

Code

<?php
function views_css_safe($string) {
  return str_replace('_', '-', $string);
}
?>