function finder_update_7206 in Finder 7.2
Update finder elements to support parents.
File
- ./
finder.install, line 619 - Finder module install file.
Code
function finder_update_7206() {
$finders = finder_load_all(TRUE);
foreach ($finders as $finder) {
foreach ($finder->elements as &$element) {
if (empty($element->parent)) {
$element->parent = NULL;
}
}
finder_save($finder);
}
return 'Update finder elements to support parents.';
}