$string['csstemplate'] = 'CSS template';
$string['csvfile'] = 'CSV file';
$string['csvimport'] = 'CSV file import';
+$string['date'] = 'Date';
$string['dateentered'] = 'Date entered';
$string['defaultfielddelimiter'] = '(default is the comma character)';
$string['defaultfieldenclosure'] = '(default is none)';
$string['pagesize'] = 'Entries per page';
$string['participants'] = 'Participants';
$string['picture'] = 'Picture';
-$string['date'] = 'Date';
$string['radiobutton'] = 'Radio buttons';
$string['rate'] = 'Rate';
$string['rating'] = 'Rating';
$string['requiredentries'] = 'Required entries';
$string['requiredentriestoview'] = 'Entries required before viewing';
$string['resettemplate'] = 'Reset template';
+$string['resizingimages'] = 'Resizing image thumbnails...';
$string['rssglobaldisabled'] = 'Disabled. See site configuration variables.';
$string['rsshowmany'] = '(number of latest entries to show, 0 to disable RSS)';
$string['rsstemplate'] = 'RSS template';
// Check through all existing records and update the thumbnail
if ($contents = get_records('data_content', 'fieldid', $this->field->id)) {
+ if (count($contents) > 20) {
+ notify(get_string('resizingimages', 'data'), 'notifysuccess');
+ echo "\n\n"; // To make sure that ob_flush() has the desired effect
+ ob_flush();
+ }
foreach ($contents as $content) {
+ @set_time_limit(300); // Might be slow!
$this->update_thumbnail($content);
}
}