english/libraries/joomla/installer/adapters/module.php
/**
	 * Custom rollback method
	 *	- Roll back the menu item
	 *
	 * @param   array  $arg  Installation step to rollback
	 *
	 * @return  boolean  True on success
	 * @since   11.1
	 */
Custom rollback method
- Roll back the menu item

@param   array  $arg  Installation step to rollback

@return  boolean  True on success
@since   11.1
Custom rollback method - Roll back the menu item @param array $arg Installation step to rollback @return boolean True on success @since 11 . 1
protected function _rollback_menu($arg)
	{
		$db = $this->parent->getDbo();
		$query = 'DELETE' .
				' FROM `#__modules_menu`' .
				' WHERE moduleid='.(int)$arg['id'];
		$db->setQuery($query);
		try
		{
			return $db->query();
		}
		catch(JException $e)
		{
			return false;
		}
	}
protected function _rollback_menu ( $ arg ) { $ db = $ this -> parent -> getDbo ( ) ; $ query = 'DELETE' . ' FROM `#__modules_menu`' . ' WHERE moduleid=' . ( int ) $ arg [ 'id' ] ; $ db -> setQuery ( $ query ) ; try { return $ db -> query ( ) ; } catch ( JException $ e ) { return false ; } }
Custom rollback method
      - Roll back the menu item
Custom rollback method - Roll back the menu item
// Get database connector object // Remove the entry from the #__modules_menu table