function video_embed_field_update_7010 in Video Embed Field 7.2
Update styles with empty class parameter.
File
- ./
video_embed_field.install, line 377 - Install, update and uninstall functions for the video_embed_field module.
Code
function video_embed_field_update_7010() {
drupal_get_schema('vef_video_styles', TRUE);
ctools_include('export');
$styles = ctools_export_load_object('vef_video_styles');
foreach ($styles as $style) {
foreach ($style->data as &$provider) {
if (!isset($provider['class'])) {
$provider['class'] = '';
}
}
ctools_export_crud_save('vef_video_styles', $style);
}
return 'Parameter class added to existing styles';
}