You are here

function hosting_platform_update_1 in Hosting 7.4

Same name and namespace in other branches
  1. 5 platform/hosting_platform.install \hosting_platform_update_1()
  2. 6.2 platform/hosting_platform.install \hosting_platform_update_1()
  3. 7.3 platform/hosting_platform.install \hosting_platform_update_1()

Implements hook_update_N().

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 100
Define database schema and update functions 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;
}