function hosting_platform_update_1 in Hosting 5
Same name and namespace in other branches
- 6.2 platform/hosting_platform.install \hosting_platform_update_1()
- 7.4 platform/hosting_platform.install \hosting_platform_update_1()
- 7.3 platform/hosting_platform.install \hosting_platform_update_1()
Re-synch all platform to correctly set up the master url, so redirects on disabled sites will work correctly.
File
- platform/
hosting_platform.install, line 25
Code
function hosting_platform_update_1() {
include_once drupal_get_path('module', 'hosting_task') . '/hosting_task.module';
$ret = array();
$result = db_query("SELECT nid FROM {node} WHERE type='platform' AND status=1");
while ($platform = db_fetch_object($result)) {
hosting_add_task($platform->nid, 'synch');
}
return $ret;
}