function _emvideo_update_add_new_formatters in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/emvideo.install \_emvideo_update_add_new_formatters()
- 6.2 contrib/emvideo/emvideo.install \_emvideo_update_add_new_formatters()
Rebuild the theme for new formatters.
7 calls to _emvideo_update_add_new_formatters()
- emvideo_update_6003 in contrib/
emvideo/ emvideo.install - Add new formatters for Lightbox2 & Shadowbox.
- emvideo_update_6004 in contrib/
emvideo/ emvideo.install - Add new formatters for link and duration.
- emvideo_update_6005 in contrib/
emvideo/ emvideo.install - Redo for new formatters for link and duration.
- emvideo_update_6006 in contrib/
emvideo/ emvideo.install - Add new formatters for link and duration.
- emvideo_update_6009 in contrib/
emvideo/ emvideo.install - Add new formatters for link and duration.
File
- contrib/
emvideo/ emvideo.install, line 492 - Installation, configuration, and removal of the emvideo module.
Code
function _emvideo_update_add_new_formatters($message = NULL) {
if (!isset($output)) {
$output = t('Rebuilt the theme to accommodate new formatters.');
}
// Adding new formatters, so need to rebuild the theme.
drupal_rebuild_theme_registry();
// Also need to make sure we grab the new formatters themselves.
$ret = _emvideo_update_reset_cache();
$ret[] = array(
'query' => $message,
'success' => TRUE,
);
return $ret;
}