function filefield_update_1 in FileField 5.2
Same name and namespace in other branches
- 5 filefield.install \filefield_update_1()
- 6.2 filefield.install \filefield_update_1()
File
- ./
filefield.install, line 9
Code
function filefield_update_1() {
$ret = array();
include_once drupal_get_path('module', 'content') . '/content.module';
include_once drupal_get_path('module', 'content') . '/content_admin.inc';
$fields = content_fields();
foreach ($fields as $field) {
switch ($field['type']) {
case 'file':
$columns = array(
'list' => array(
'type' => 'int',
'not null' => TRUE,
'default' => '0',
),
);
content_alter_db_field(array(), array(), $field, $columns);
break;
}
}
db_query('DELETE FROM {cache}');
return $ret;
}