src/Drupal/Driver/Cores/Drupal6.php 1 location
|
@@ 70-72 (lines=3) @@
|
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
// Assign authorship if none exists and `author` is passed. |
| 70 |
|
if (!isset($node->uid) && !empty($node->author) && ($user = user_load(array('name' => $node->author)))) { |
| 71 |
|
$node->uid = $user->uid; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
// Convert properties to expected structure. |
| 75 |
|
$this->expandEntityProperties($node); |
src/Drupal/Driver/Cores/Drupal7.php 1 location
|
@@ 56-58 (lines=3) @@
|
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
// Assign authorship if none exists and `author` is passed. |
| 56 |
|
if (!isset($node->uid) && !empty($node->author) && ($user = user_load_by_name($node->author))) { |
| 57 |
|
$node->uid = $user->uid; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
// Convert properties to expected structure. |
| 61 |
|
$this->expandEntityProperties($node); |