function advagg_css_compress_update_7200

cis7 advagg_css_compress.install advagg_css_compress_update_7200(&$sandbox)
cle7 advagg_css_compress.install advagg_css_compress_update_7200(&$sandbox)
elmsmedia7 advagg_css_compress.install advagg_css_compress_update_7200(&$sandbox)
icor7 advagg_css_compress.install advagg_css_compress_update_7200(&$sandbox)
meedjum_blog7 advagg_css_compress.install advagg_css_compress_update_7200(&$sandbox)
mooc7 advagg_css_compress.install advagg_css_compress_update_7200(&$sandbox)

Upgrade AdvAgg CSS Compress previous versions (6.x-1.x & 7.x-1.x) to 7.x-2.x.

Implements hook_update_N().

File

sites/all/modules/ulmus/advagg/advagg_css_compress/advagg_css_compress.install, line 58
Handles AdvAgg CSS compress installation and upgrade tasks.

Code

function advagg_css_compress_update_7200(&$sandbox) {
  // Bail if old DB Table does not exist.
  if (!db_table_exists('cache_advagg_css_compress_inline')) {
    return t('Nothing needed to happen in AdvAgg CSS Compress.');
  }

  // Remove all old advagg css compress variables.
  db_delete('variable')->condition('name', 'advagg_css%compress%', 'LIKE')->execute();

  // Remove old schema.
  db_drop_table('cache_advagg_css_compress_inline');

  return t('Upgraded AdvAgg CSS Compress to 7.x-2.x.');
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.