function iframe_update_6010 in Iframe 6
Increase size of url-field to 1024 chars
File
- ./
iframe.install, line 125 - Defines simple iframe field types. based on the cck-module "link" by quicksketch Functions for install and uninstall AND Migrations
Code
function iframe_update_6010() {
$ret = array();
include_once drupal_get_path('module', 'content') . '/content.module';
include_once drupal_get_path('module', 'content') . '/includes/content.admin.inc';
include_once drupal_get_path('module', 'content') . '/includes/content.crud.inc';
/* 1. update the general settings for iframe-field */
$fields = content_fields();
foreach ($fields as $field) {
switch ($field['type']) {
case 'iframe':
$field_name = $field['field_name'];
$field['columns']['url']['length'] = 1024;
content_field_instance_update($field);
}
}
$ret[] = update_sql('DELETE FROM {cache}');
return $ret;
}