You are here

function hosting_platform_update_1 in Hosting 6.2

Same name and namespace in other branches
  1. 5 platform/hosting_platform.install \hosting_platform_update_1()
  2. 7.4 platform/hosting_platform.install \hosting_platform_update_1()
  3. 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 77
Install, update and uninstall for the Platforms module.

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;
}