function ctools_export_ui_edit_name_exists in Chaos Tool Suite (ctools) 7
Test for #machine_name type to see if an export exists.
1 string reference to 'ctools_export_ui_edit_name_exists'
- ctools_export_ui::edit_form in plugins/
export_ui/ ctools_export_ui.class.php - Provide the actual editing form.
File
- plugins/
export_ui/ ctools_export_ui.class.php, line 1438
Code
function ctools_export_ui_edit_name_exists($name, $element, &$form_state) {
$plugin = $form_state['plugin'];
return empty($form_state['item']->export_ui_allow_overwrite) && ctools_export_crud_load($plugin['schema'], $name);
}