You are here

function video_params_v_get_params in Video 6

Same name and namespace in other branches
  1. 5 plugins/video_params/video_params.module \video_params_v_get_params()
  2. 6.2 plugins/video_params/video_params.module \video_params_v_get_params()

Implementation of hook_v_get_param() - video module specific hook

File

plugins/video_params/video_params.module, line 91
Enable addition of params to object generated by video module

Code

function video_params_v_get_params(&$node) {
  $serial_data = $node->serial_data;
  if (is_array($serial_data) && array_key_exists('object_parameters', $serial_data) && !empty($serial_data['object_parameters'])) {
    return $serial_data['object_parameters'];
  }
  else {
    return NULL;
  }
}