panels_edit_cache_get_default

Versions
6
panels_edit_cache_get_default(&$display, $content_types = NULL, $title = FALSE)

Create the default cache for editing panel displays.

If an application is using the Panels display editor without having specified a cache key, this method can be used to create the default cache.

Related topics

▾ 1 function calls panels_edit_cache_get_default()

_panels_edit in contrib-6/panels/includes/display-edit.inc
Handle calling and processing of the form for editing display content.

Code

contrib-6/panels/panels.module, line 1284

<?php
function panels_edit_cache_get_default(&$display, $content_types = NULL, $title = FALSE) {
  if (empty($content_types)) {
    $content_types = ctools_content_get_available_types();
  }

  $display->cache_key = $display->did;
  panels_cache_clear('display', $display->did);

  $cache = new stdClass();
  $cache->display = &$display;
  $cache->content_types = $content_types;
  $cache->display_title = $title;

  panels_edit_cache_set($cache);
  return $cache;
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options