english/administrator/components/com_modules/controllers/module.php
/**
	 * Override parent cancel method to reset the add module state.
	 */
Override parent cancel method to reset the add module state.
Override parent cancel method to reset the add module state .
public function cancel($key = null)
	{
		$app = JFactory::getApplication();
		parent::cancel();
		$app->setUserState('com_modules.add.module.extension_id', null);
	}
public function cancel ( $ key = null ) { $ app = JFactory :: getApplication ( ) ; parent :: cancel ( ) ; $ app -> setUserState ( 'com_modules.add.module.extension_id' , null ) ; }
Override parent cancel method to reset the add module state.
Override parent cancel method to reset the add module state .
// Initialise variables.