function customappsreg_customdests_getunknown() { $results = array(); $my_probs = framework_list_problem_destinations($my_hash, false); if (!empty($my_probs)) { foreach ($my_probs as $problem) { if ($problem['status'] == 'CUSTOM') { $results[] = $problem['dest']; } } } return array_unique($results); }
public function getUnknownDests() { $results = array(); // Is always an array $all_probs = framework_list_problem_destinations(); foreach ($all_probs as $prob) { if ($problem['status'] != "CUSTOM") { continue; } if (substr($problem['dest'], 0, 11) == "customdests") { // Assume we know what we're doing continue; } // Otherwise $results[$problem['dest']] = true; } return array_keys($results); }