'object', 'subtype' => 'album', 'container_guid' => $owner->getGUID(), 'limit' => false)); $album_options = array(); $album_options[-1] = elgg_echo('album:create'); if ($albums) { foreach ($albums as $album) { $album_title = $album->getTitle(); if (strlen($album_title) > 50) { $album_title = substr($album_title, 0, 47).'...'; } $album_options[$album->guid] = $album_title; } } $body = "
".elgg_echo('tidypics:album_select')."

"; $body .= elgg_view('input/hidden', array('name' => 'owner_guid','value' => $owner->guid)); $body .= elgg_view('input/dropdown', array('name' => 'album_guid', 'value' => '', 'options_values' => $album_options)); $body .= "

"; $body .= elgg_view('input/submit', array('value' => elgg_echo('tidypics:continue'))).'
'; echo elgg_view('input/form', array('action' => $action, 'body' => $body));