function video_explode in Video 6.4
Same name and namespace in other branches
- 6.5 video_widget.inc \video_explode()
- 7 video.module \video_explode()
#options helper function to set our key=value for the form api.
2 calls to video_explode()
- video_default_widget_settings in ./
video_widget.inc - video_widget_element_settings in ./
video_widget.inc - Process elements loads on settings
File
- ./
video_widget.inc, line 537 - Common widget functions
Code
function video_explode($delimeter, $dimensions) {
$options = array();
$values = explode($delimeter, $dimensions);
foreach ($values as $value) {
//lets check we have a value and its in the right format
if (!empty($value) && video_format_right($value)) {
$options[trim($value)] = trim($value);
}
}
return $options;
}