$context['sandbox']['max']=db_query('SELECT COUNT(DISTINCT rid) FROM {redirect}')->fetchField();
}
$limit=20;
$rids=db_query_range("SELECT rid FROM {redirect} WHERE rid > :rid ORDER BY rid",0,$limit,array(':rid'=>$context['sandbox']['current_rid']))->fetchCol();
$rids=db_query_range("SELECT rid FROM {redirect} WHERE rid > :rid ORDER BY rid",0,$limit,[':rid'=>$context['sandbox']['current_rid']])->fetchCol();
@@ -171,14 +171,14 @@ function redirect_generate_batch_finished($success, $results, $operations) {
// An error occurred.
// $operations contains the operations that remained unprocessed.
$error_operation=reset($operations);
drupal_set_message(t('An error occurred while processing @operation with arguments : @args',array('@operation'=>$error_operation[0],'@args'=>print_r($error_operation[0],TRUE))));
drupal_set_message(t('An error occurred while processing @operation with arguments : @args',['@operation'=>$error_operation[0],'@args'=>print_r($error_operation[0],TRUE)]));
'#description'=>t('A redirect set for a specific language will always be used when requesting this page in that language, and takes precedence over redirects set for <em>All languages</em>.'),
);
];
}
/**
@@ -394,12 +394,12 @@ function redirect_get_redirect_operations() {
->setDescription(t("Enter an internal Drupal path or path alias to redirect (e.g. %example1 or %example2). Fragment anchors (e.g. %anchor) are <strong>not</strong> allowed.",array('%example1'=>'node/123','%example2'=>'taxonomy/term/123','%anchor'=>'#anchor')))
->setDescription(t("Enter an internal Drupal path or path alias to redirect (e.g. %example1 or %example2). Fragment anchors (e.g. %anchor) are <strong>not</strong> allowed.",['%example1'=>'node/123','%example2'=>'taxonomy/term/123','%anchor'=>'#anchor']))