allow for skipping normalize checks and return raw metadata

This commit is contained in:
John Bintz 2009-11-14 12:52:32 -05:00
parent faacafcaf1
commit 9a0b40daba
1 changed files with 3 additions and 2 deletions

View File

@ -160,11 +160,12 @@ class ComicPressComicPost {
/** /**
* Rework normalized attachments for a simpler embed format. * Rework normalized attachments for a simpler embed format.
* @param boolean $skip_checks If true, skip the normalization checks in normalize_ordering(). Don't use in the admin interface.
* @return array The simplified, normalized attachments. * @return array The simplified, normalized attachments.
*/ */
function get_attachments_with_children() { function get_attachments_with_children($skip_checks = false) {
$attachments_with_children = array(); $attachments_with_children = array();
foreach ($this->normalize_ordering() as $id => $info) { foreach ($this->normalize_ordering($skip_checks) as $id => $info) {
if ($info['enabled']) { if ($info['enabled']) {
$attachments_with_children[$id] = array(); $attachments_with_children[$id] = array();
if (isset($info['children'])) { if (isset($info['children'])) {