function video_params_v_get_params in Video 5
Same name and namespace in other branches
- 6 plugins/video_params/video_params.module \video_params_v_get_params()
- 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 89 - 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;
}
}