You are here

function panels_flexible_edit_name_exists in Panels 7.3

Test for #machine_name type to see if an export exists.

1 string reference to 'panels_flexible_edit_name_exists'
panels_flexible_reuse_form in plugins/layouts/flexible/flexible.inc

File

plugins/layouts/flexible/flexible.inc, line 1836
Flexible layout plugin.

Code

function panels_flexible_edit_name_exists($name, $element, &$form_state) {
  ctools_include('export');
  $plugin = $form_state['plugin'];
  return empty($form_state['item']->export_ui_allow_overwrite) && ctools_export_crud_load($plugin['schema'], $name);
}