| 1 |
<?php |
<?php |
| 2 |
// $Id: emfield.install,v 1.1.6.12 2009/10/05 19:05:10 aaron Exp $ |
// $Id: emfield.install,v 1.1.6.13 2009/11/08 13:10:45 aaron Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 187 |
} |
} |
| 188 |
|
|
| 189 |
// Work our way through the field values 50 rows at a time. |
// Work our way through the field values 50 rows at a time. |
| 190 |
$limit = 50; |
// Note that if PHP times out here, you can set the |
| 191 |
|
// emfield_install_fix_data_rows variable in settings.php to a lower number. |
| 192 |
|
// If you get this error, please report it so we can find a better limit |
| 193 |
|
// to work with; I'm not sure if this value will work in the majority of |
| 194 |
|
// cases. Thanks, Aaron. |
| 195 |
|
$limit = variable_get('emfield_install_fix_data_rows', 50); |
| 196 |
if (empty($context['sandbox']['providers'])) { |
if (empty($context['sandbox']['providers'])) { |
| 197 |
$result = db_query_range("SELECT * FROM {{$context['sandbox']['table']}} WHERE vid > %d ORDER BY vid ASC", $context['sandbox']['current_node'], 0, $limit); |
$result = db_query_range("SELECT * FROM {{$context['sandbox']['table']}} WHERE vid > %d ORDER BY vid ASC", $context['sandbox']['current_node'], 0, $limit); |
| 198 |
} |
} |