| 1 |
<?php |
<?php |
| 2 |
// $Id: core.inc,v 1.1.2.11 2009/05/09 14:16:30 dman Exp $ |
// $Id: core.inc,v 1.1.2.12 2009/07/01 02:40:56 dman Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Basic per-module functionality used by import_html. |
* Basic per-module functionality used by import_html. |
| 181 |
|
|
| 182 |
if (! empty($menu)) { |
if (! empty($menu)) { |
| 183 |
// Found a pre-existing menu, update it |
// Found a pre-existing menu, update it |
| 184 |
import_html_debug(" Discovered that a placeholder menu item for %path already exists. Filling that one out with the full details now", array('%path' => $node->path)); |
import_html_debug("Discovered that a placeholder menu item for %path already exists. Filling that one out with the full details now", array('%path' => $node->path)); |
| 185 |
#dpm($menu); |
#dpm($menu); |
| 186 |
} |
} |
| 187 |
else { |
else { |
| 280 |
// and attach self to it |
// and attach self to it |
| 281 |
|
|
| 282 |
if (!$parent) { |
if (!$parent) { |
| 283 |
import_html_debug("Failed to regressively build menu for '$path'. This should not happen. Dunno why we are here.", WATCHDOG_ERROR); |
import_html_debug("Failed to regressively build menu for '$path'. This should not happen. Dunno why we are here.", array(), WATCHDOG_ERROR); |
| 284 |
trigger_error("This code should never run. Something must be wrong in the input", E_USER_ERROR); |
trigger_error("This code should never run. Something must be wrong in the input", E_USER_ERROR); |
| 285 |
return FALSE; |
return FALSE; |
| 286 |
} |
} |