*/ class AlbumSelectPreloads { function preload(&$template, $preload, $paramSet) { static $loaded; if (!empty($loaded[$preload])) { return null; } $loaded[$preload] = 1; switch($preload) { case 'AlbumTree': $template->style('modules/albumselect/dtree.css'); $template->javascript('modules/albumselect/dtree.js'); return null; case 'AlbumSelect': /* Nothing to do */ return null; } return GalleryCoreApi::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__); } } ?>