Skip to content
Snippets Groups Projects

Issue #3151676: Remove unnecessary calls to drupal_get_path(), replace with __DIR__

1 file
+ 8
8
Compare changes
  • Side-by-side
  • Inline
@@ -23,7 +23,7 @@ function _batch_test_batch_0() {
$batch = [
'operations' => [],
'finished' => '_batch_test_finished_0',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_0',
];
return $batch;
@@ -46,7 +46,7 @@ function _batch_test_batch_1() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_1',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_1',
];
return $batch;
@@ -68,7 +68,7 @@ function _batch_test_batch_2() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_2',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_2',
];
return $batch;
@@ -100,7 +100,7 @@ function _batch_test_batch_3() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_3',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_3',
];
return $batch;
@@ -130,7 +130,7 @@ function _batch_test_batch_4() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_4',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_4',
];
return $batch;
@@ -153,7 +153,7 @@ function _batch_test_batch_5() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_5',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_5',
];
return $batch;
@@ -176,7 +176,7 @@ function _batch_test_batch_6() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_6',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_6',
];
return $batch;
@@ -207,7 +207,7 @@ function _batch_test_batch_7() {
$batch = [
'operations' => $operations,
'finished' => '_batch_test_finished_7',
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
'file' => __DIR__ . '/batch_test.callbacks.inc',
'batch_test_id' => 'batch_7',
];
return $batch;
Loading