/** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * @since 1.6 */ protected function loadFormData() { // Set data in session, and parent loadFormData can load it. // JFactory::getApplication()->setUserState("com_webgallery.edit.thumbnail.data", array()); $data = parent::loadFormData(); return $data; }