You are here

function theme_quickedit_wrap_content_region in Quick Edit 7

Injects start and end markers before and after the content region.

Certain themes don't add region wrappers, so we can't assume region wrappers are present. Therefore, Quick Edit must inject its own alternative: start and end markers for the "content" region.

File

./quickedit.module, line 793
Provides in-place content editing functionality for fields.

Code

function theme_quickedit_wrap_content_region($variables) {
  $element = $variables['element'];
  return '<div data-quickedit-content-region-start></div>' . $element['#children'] . '<div data-quickedit-content-region-end></div>';
}