You are here

function video_explode in Video 7

Same name and namespace in other branches
  1. 6.5 video_widget.inc \video_explode()
  2. 6.4 video_widget.inc \video_explode()
2 calls to video_explode()
video_default_instance_settings in ./video.module
Field instances settings
video_widget_element_settings in ./video.module
Process elements loads on settings

File

./video.module, line 631

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;
}