You are here

function filefield_update_6103 in FileField 6.3

Convert "Extensible File" to a normal "File" widget.

File

./filefield.install, line 270

Code

function filefield_update_6103() {
  $ret = array();
  $ret[] = update_sql("UPDATE {" . content_instance_tablename() . "} SET widget_type = 'filefield_widget' WHERE widget_type = 'filefield_combo'");
  cache_clear_all('*', content_cache_tablename(), TRUE);
  cache_clear_all('*', 'cache', TRUE);
  return $ret;
}