You are here

function fieldable_panels_panes_update_7102 in Fieldable Panels Panes (FPP) 7

Delete stale revisions.

File

./fieldable_panels_panes.install, line 267
Fieldable Panels Panes install file.

Code

function fieldable_panels_panes_update_7102(&$sandbox) {
  $existing = db_select('fieldable_panels_panes', 'f');
  $existing
    ->fields('f', array(
    'fpid',
  ));
  db_delete('fieldable_panels_panes_revision')
    ->condition('fpid', $existing, 'NOT IN')
    ->execute();
}