src/Drupal/Driver/Cores/Drupal6.php 1 location
|
@@ 65-67 (lines=3) @@
|
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
// Assign authorship if none exists and `author` is passed. |
| 65 |
|
if (!isset($node->uid) && !empty($node->author) && ($user = user_load(array('name' => $node->author)))) { |
| 66 |
|
$node->uid = $user->uid; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
// Convert properties to expected structure. |
| 70 |
|
$this->expandEntityProperties($node); |
src/Drupal/Driver/Cores/Drupal7.php 1 location
|
@@ 49-51 (lines=3) @@
|
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
// Assign authorship if none exists and `author` is passed. |
| 49 |
|
if (!isset($node->uid) && !empty($node->author) && ($user = user_load_by_name($node->author))) { |
| 50 |
|
$node->uid = $user->uid; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
// Convert properties to expected structure. |
| 54 |
|
$this->expandEntityProperties($node); |