function panopoly_core_update_7002 in Panopoly Core 7
Move pathauto state information from pathauto to pathauto_state.
File
- ./
panopoly_core.install, line 105 - An installation file for Panopoly Core
Code
function panopoly_core_update_7002() {
module_load_install('pathauto');
if (function_exists('pathauto_update_7006')) {
// Call it here because it needs to be re-run if it was previously run
// with an older version of the patch from #936222.
$res = pathauto_update_7006();
if (db_table_exists('pathauto')) {
db_query("INSERT INTO {pathauto_state} (entity_type, entity_id, pathauto) SELECT entity_type, entity_id, pathauto FROM {pathauto}");
db_drop_table('pathauto');
}
return $res;
}
}