You are here

function views_css_safe in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 5 views.module \views_css_safe()
  2. 6.3 views.module \views_css_safe()

Prepare the specified string for use as a CSS identifier.

6 calls to views_css_safe()
template_preprocess_views_view in theme/theme.inc
Preprocess the primary theme implementation for a view.
template_preprocess_views_view_fields in theme/theme.inc
Preprocess theme function to print a single record from a row, with fields
template_preprocess_views_view_table in theme/theme.inc
Display a view as a table style.
views_exposed_form in ./views.module
Form builder for the exposed widgets form.
views_theme in ./views.module
Implementation of hook_theme(). Register views theming functions.

... See full list

File

./views.module, line 1285
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_css_safe($string) {
  return str_replace('_', '-', $string);
}