Example #1
0
   /**
	* Save general settings
	*/
	function saveLayout()
	{
		$app = & JFactory::getApplication();

		hwdvids_BE_settings::updateFromPost();

		require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'helpers'.DS.'draw.php');
		$updt_config = hwdvsDrawFile::generalConfig();
		if ($updt_config) {
			$app->enqueueMessage(_HWDVIDS_ALERT_ADMIN_SETSAVED);
			$app->redirect( JURI::root( true ) . '/administrator/index.php?option=com_hwdvideoshare&task=layoutsettings' );
		} else {
			$app->enqueueMessage(_HWDVIDS_ALERT_ADMIN_SETNOTSAVED);
			$app->redirect( JURI::root( true ) . '/administrator/index.php?option=com_hwdvideoshare&task=settings' );
		}
	}
Example #2
0
	function restoreDefaults()
	{
		require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'models'.DS.'settings.php');
		hwdvids_BE_settings::restoreDefaults();
		return;
	}