Skip to main content
My answer was for drupal 7
Source Link
Chapabu
  • 13.9k
  • 2
  • 40
  • 58

IN drupalAnswer for Drupal 7:

$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);

IN drupal 7

$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);

Answer for Drupal 7:

$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);

IN drupal 7

$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);
$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);

IN drupal 7

$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);
Source Link
rafinskipg
  • 281
  • 2
  • 5

$node->domains = $domains;
$node->domain_site = FALSE;
$node->domain_source = '1';

Where $domains is an associative array like that:

$domains = array(
 '1' => '1',
 '4' => '4',
);