function slick_html_id in Slick Carousel 7.2
Same name and namespace in other branches
- 7.3 slick.deprecated.inc \slick_html_id()
Returns the Slick HTML ID.
Parameters
string $string: The default HTML ID.
string $id: The given trusted HTML ID.
Return value
string Returns the trusted HTML ID for a given Slick instance, otherwise dynamic.
4 calls to slick_html_id()
- slick_build in ./
slick.module - Returns a cacheable renderable array of a single slick instance.
- slick_fields_field_formatter_view in slick_fields/
slick_fields.module - Implements hook_field_formatter_view().
- template_preprocess_slick in templates/
slick.theme.inc - Prepares variables for slick templates.
- _slick_build_fc_overlay in includes/
slick.field_collection.inc - Build the managed overlays: image, video, audio or nested slicks.
File
- ./
slick.module, line 224 - Slick carousel integration, the last carousel you'll ever need.
Code
function slick_html_id($string = 'slick', $id = '') {
$slick_id =& drupal_static('slick_id', 0);
return empty($id) ? str_replace('_', '-', $string . '-' . ++$slick_id) : $id;
}