You are here

function panels_bootstrap_edit_name_exists in Panels Bootstrap Layout Builder 7

Same name and namespace in other branches
  1. 7.3 plugins/layouts/bootstrap/bootstrap.inc \panels_bootstrap_edit_name_exists()

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

1 string reference to 'panels_bootstrap_edit_name_exists'
panels_bootstrap_reuse_form in plugins/layouts/bootstrap/bootstrap.inc

File

plugins/layouts/bootstrap/bootstrap.inc, line 1427

Code

function panels_bootstrap_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);
}