You are here

function feeds_ui_importer_machine_name_exists in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_importer_machine_name_exists()

Validation callback for the importer machine name field.

1 string reference to 'feeds_ui_importer_machine_name_exists'
feeds_ui_create_form in feeds_ui/feeds_ui.admin.inc
Create a new configuration.

File

feeds_ui/feeds_ui.admin.inc, line 165
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function feeds_ui_importer_machine_name_exists($id) {
  if ($id == 'create') {

    // Create is a reserved path for the add importer form.
    return TRUE;
  }
  return config('feeds.importer.' . $id)
    ->get('id');
}