english/administrator/components/com_modules/controllers/module.php
/**
	 * Function that allows child controller access to model data after the data has been saved.
	 *
	 * @param	JModel	$model	The data model object.
	 *
	 * @return	void
	 * @since	1.6
	 */
Function that allows child controller access to model data after the data has been saved.
@param       JModel  $model  The data model object.


Function that allows child controller access to model data after the data has been saved . @param JModel $model The data model object .
protected function postSaveHook(JModel &$model, $validData = array())
	{
		$app = JFactory::getApplication();
		$task = $this->getTask();
		switch ($task)
		{
			case 'save2new':
				$app->setUserState('com_modules.add.module.extension_id', $model->getState('module.extension_id'));
				break;
			default:
				$app->setUserState('com_modules.add.module.extension_id', null);
				break;
		}
	}
protected function postSaveHook ( JModel & $ model , $ validData = array ( ) ) { $ app = JFactory :: getApplication ( ) ; $ task = $ this -> getTask ( ) ; switch ( $ task ) { case 'save2new' : $ app -> setUserState ( 'com_modules.add.module.extension_id' , $ model -> getState ( 'module.extension_id' ) ) ; break ; default : $ app -> setUserState ( 'com_modules.add.module.extension_id' , null ) ; break ; } }
Function that allows child controller access to model data after the data has been saved.
Function that allows child controller access to model data after the data has been saved .
// Initialise variables.