function _emthumb_update_add_new_formatters in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emthumb/emthumb.install \_emthumb_update_add_new_formatters()
- 6.2 contrib/emthumb/emthumb.install \_emthumb_update_add_new_formatters()
Rebuild the theme for new formatters.
File
- contrib/
emthumb/ emthumb.install, line 20 - Updates for the emthumb module.
Code
function _emthumb_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 = _emthumb_update_reset_cache();
$ret[] = array(
'query' => $message,
'success' => TRUE,
);
return $ret;
}