function feed_import_machine_name_exists in Feed Import 7.2
Same name and namespace in other branches
- 7.3 feed_import.module \feed_import_machine_name_exists()
Checks if a machine name already exists. Callback for machine_name input type.
Parameters
string $name: Name to check
Return value
bool If machine name exists or not
1 string reference to 'feed_import_machine_name_exists'
- feed_import_add_new_feed_form in ./
feed_import.module - Add a new feed form
File
- ./
feed_import.module, line 956 - User interface, cron functions for feed_import module
Code
function feed_import_machine_name_exists($name) {
$feeds = FeedImport::loadFeeds();
foreach ($feeds as &$feed) {
if ($feed['machine_name'] == $name) {
return TRUE;
}
}
return FALSE;
}