You are here

function panels_mini_save in Panels 6.3

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \panels_mini_save()
  2. 6.2 panels_mini/panels_mini.module \panels_mini_save()
  3. 7.3 panels_mini/panels_mini.module \panels_mini_save()

Write a mini panel to the database.

1 call to panels_mini_save()
panels_mini_panels_cache_save in panels_mini/panels_mini.module
Save all changes made to a display using the panels mini UI cache.
1 string reference to 'panels_mini_save'
panels_mini_schema_1 in panels_mini/panels_mini.install
Schema version 1 for Panels in D6.

File

panels_mini/panels_mini.module, line 206
panels_mini.module

Code

function panels_mini_save(&$mini) {
  if (!empty($mini->display)) {
    $display = panels_save_display($mini->display);
    $mini->did = $display->did;
  }
  $update = isset($mini->pid) && $mini->pid != 'new' ? array(
    'pid',
  ) : array();
  drupal_write_record('panels_mini', $mini, $update);
  return $mini;
}