function _sanitize_timeline_options in Views TimelineJS integration 7.3
Same name and namespace in other branches
- 8.3 views_timelinejs.module \_sanitize_timeline_options()
Sanitizes the timeline options.
1 call to _sanitize_timeline_options()
- template_preprocess_views_timelinejs in theme/
views_timelinejs.theme.inc - Prepares variables for the TimelineJS style template.
File
- theme/
views_timelinejs.theme.inc, line 40 - Theme preprocessors.
Code
function _sanitize_timeline_options($options) {
// Sanitize the options.
$options = array_map('check_plain', $options);
// Remove empty values from the options before returning.
return array_filter($options);
}