You are here

function views_css_safe in Views (for Drupal 7) 5

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

Prepare the specified string for use as a CSS identifier.

7 calls to views_css_safe()
theme_views_view in ./views.module
Display a view.
theme_views_view_list in ./views.module
Display the nodes of a view as a list.
theme_views_view_table in ./views.module
Display the nodes of a view as a table.
views_get_textarea in ./views.module
views_theme_wizard_generate_list_stylesheet_code in ./views_theme_wizard.module
generate a stylesheet file for a list theme

... See full list

File

./views.module, line 1519

Code

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